84% master-query-loop

Code Review | Master Query Loop

WordPress plugin Master Query Loop scored84%from 54 tests.

About plugin

  • Plugin page: master-query-loop
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.2
  • WordPress version: 6.3.1
  • First release: Jun 6, 2023
  • Latest release: Jun 12, 2023
  • Number of updates: 3
  • Update frequency: every 2.0 days
  • Top authors: datvimaru50 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /166 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.17ms] Passed 4 tests

Server-side resources used by Master Query Loop
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.45 ▼0.0133.97 ▼5.86
Dashboard /wp-admin3.34 ▲0.0443.07 ▼5.37
Posts /wp-admin/edit.php3.39 ▲0.0444.10 ▼1.21
Add New Post /wp-admin/post-new.php5.92 ▲0.0487.42 ▼4.22
Media Library /wp-admin/upload.php3.26 ▲0.0434.06 ▲1.26
Master Query Loop /wp-admin/tools.php?page=master-query-loop3.2329.25

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Master Query Loop
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.34 ▼0.291.93 ▲0.2238.06 ▼5.98
Dashboard /wp-admin2,199 ▲225.67 ▲0.1384.14 ▼5.8337.82 ▼0.19
Posts /wp-admin/edit.php2,104 ▲11.98 ▲0.0144.20 ▲4.7239.32 ▲2.62
Add New Post /wp-admin/post-new.php1,533 ▲123.64 ▲0.90614.23 ▲24.7155.63 ▲0.92
Media Library /wp-admin/upload.php1,398 ▼54.22 ▲0.0297.32 ▲2.5742.63 ▼0.72
Master Query Loop /wp-admin/tools.php?page=master-query-loop8052.0324.6628.38

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/master-query-loop/inc/mql-setting.php:45
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/master-query-loop/inc/mql-setting.php:45

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: query loop, specific posts, block editor, sticky posts, popular posts...

master-query-loop/master-query-loop.php Passed 13 tests

"Master Query Loop" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
100 characters long description:
Add advanced features to the WordPress core/query block: get specific posts, popular posts and more!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin172 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP33095170
CSS1001
JavaScript1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions981.82%
▷ Anonymous functions218.18%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin