Lubinik Learning

Training mode

Code Review & Real-World Scenarios

Time remaining:

0 / 20 answered

  1. 1. A template echoes a stored URL into href without escaping. What is the first correction?

    A template echoes a stored URL into href without escaping. What is the first correction?
    Hint

    Choose the solution with the clearest boundary and safest lifecycle behavior.

  2. 2. A save_post callback writes metadata on every invocation. What guards are needed?

    A save_post callback writes metadata on every invocation. What guards are needed?
    Hint

    Choose the solution with the clearest boundary and safest lifecycle behavior.

  3. 3. A template uses query_posts() to show featured content. What is preferable?

    A template uses query_posts() to show featured content. What is preferable?
    Hint

    Choose the solution with the clearest boundary and safest lifecycle behavior.

  4. 4. A plugin calls flush_rewrite_rules() on every init. What is wrong?

    A plugin calls flush_rewrite_rules() on every init. What is wrong?
    Hint

    Choose the solution with the clearest boundary and safest lifecycle behavior.

  5. 5. An AJAX mutation checks a nonce but no capability. Is it secure?

    An AJAX mutation checks a nonce but no capability. Is it secure?
    Hint

    Choose the solution with the clearest boundary and safest lifecycle behavior.

  6. 6. A REST route omits permission_callback because it is public. What should change?

    A REST route omits permission_callback because it is public. What should change?
    Hint

    Choose the solution with the clearest boundary and safest lifecycle behavior.

  7. 7. Code concatenates a request value into SQL. What is the correction?

    Code concatenates a request value into SQL. What is the correction?
    Hint

    Choose the solution with the clearest boundary and safest lifecycle behavior.

  8. 8. Critical records exist only in a transient. What is the design flaw?

    Critical records exist only in a transient. What is the design flaw?
    Hint

    Choose the solution with the clearest boundary and safest lifecycle behavior.

  9. 9. A recurring event is scheduled on every request. What happens?

    A recurring event is scheduled on every request. What happens?
    Hint

    Choose the solution with the clearest boundary and safest lifecycle behavior.

  10. 10. A 5 MB monthly report is stored as an autoloaded option. What is better?

    A 5 MB monthly report is stored as an autoloaded option. What is better?
    Hint

    Choose the solution with the clearest boundary and safest lifecycle behavior.

  11. 11. A loop runs a custom query for each of 200 posts. What should review investigate?

    A loop runs a custom query for each of 200 posts. What should review investigate?
    Hint

    Choose the solution with the clearest boundary and safest lifecycle behavior.

  12. 12. A child theme copies a huge parent template for one small insertion. What is preferable?

    A child theme copies a huge parent template for one small insertion. What is preferable?
    Hint

    Choose the solution with the clearest boundary and safest lifecycle behavior.

  13. 13. A custom order workflow is implemented only in a child theme. What is the issue?

    A custom order workflow is implemented only in a child theme. What is the issue?
    Hint

    Choose the solution with the clearest boundary and safest lifecycle behavior.

  14. 14. A static block changes save markup and old posts show validation errors. What was missing?

    A static block changes save markup and old posts show validation errors. What was missing?
    Hint

    Choose the solution with the clearest boundary and safest lifecycle behavior.

  15. 15. A dynamic block prints attributes directly in HTML. What is required?

    A dynamic block prints attributes directly in HTML. What is required?
    Hint

    Choose the solution with the clearest boundary and safest lifecycle behavior.

  16. 16. A production bug appears. Should WP_DEBUG_DISPLAY be enabled publicly?

    A production bug appears. Should WP_DEBUG_DISPLAY be enabled publicly?
    Hint

    Choose the solution with the clearest boundary and safest lifecycle behavior.

  17. 17. Code catches Throwable and silently continues. What is the risk?

    Code catches Throwable and silently continues. What is the risk?
    Hint

    Choose the solution with the clearest boundary and safest lifecycle behavior.

  18. 18. A plugin deletes all data on deactivation. What is wrong?

    A plugin deletes all data on deactivation. What is wrong?
    Hint

    Choose the solution with the clearest boundary and safest lifecycle behavior.

  19. 19. A service reads $_POST deep inside business logic. What is better?

    A service reads $_POST deep inside business logic. What is better?
    Hint

    Choose the solution with the clearest boundary and safest lifecycle behavior.

  20. 20. A performance patch feels faster locally. What evidence is still needed?

    A performance patch feels faster locally. What evidence is still needed?
    Hint

    Choose the solution with the clearest boundary and safest lifecycle behavior.