84% minqueue

Code Review | MinQueue

WordPress plugin MinQueue scored84%from 54 tests.

About plugin

  • Plugin page: minqueue
  • Plugin version: 1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.5
  • WordPress version: 6.3.1
  • First release: Nov 26, 2012
  • Latest release: Sep 19, 2013
  • Number of updates: 25
  • Update frequency: every 19.6 days
  • Top authors: mattheu (100%)

Code review

54 tests

User reviews

30 reviews

Install metrics

400+ active /24,751 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.17MB] [CPU: ▼4.94ms] Passed 4 tests

This is a short check of server-side resources used by MinQueue
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1837.95 ▼0.53
Dashboard /wp-admin3.49 ▲0.1448.41 ▼13.51
Posts /wp-admin/edit.php3.60 ▲0.2446.00 ▼2.56
Add New Post /wp-admin/post-new.php6.07 ▲0.1893.10 ▼3.14
Media Library /wp-admin/upload.php3.41 ▲0.1834.09 ▲1.01
MinQueue /wp-admin/options-general.php?page=minqueue3.3934.51

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 48 new files
Database: no new tables, 7 new options
New WordPress options
minqueue_version
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by MinQueue
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.17 ▼0.381.66 ▲0.0837.02 ▼3.94
Dashboard /wp-admin2,211 ▲315.64 ▼0.0487.11 ▲1.4741.19 ▼2.55
Posts /wp-admin/edit.php2,117 ▲171.97 ▲0.0035.94 ▼0.8134.76 ▼1.99
Add New Post /wp-admin/post-new.php1,550 ▲2217.97 ▼5.45633.29 ▼19.3251.78 ▼2.88
Media Library /wp-admin/upload.php1,419 ▲164.17 ▲0.0994.96 ▼1.9343.94 ▲0.82
MinQueue /wp-admin/options-general.php?page=minqueue9561.8431.0636.19

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • minqueue_version
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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 items
  • 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Minify_Controller_Base' not found in wp-content/plugins/minqueue/PHP-Minify-Lib/Minify/Controller/Page.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Minify_Controller_Base' not found in wp-content/plugins/minqueue/PHP-Minify-Lib/Minify/Controller/Groups.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/minqueue/minqueue-helper-tool.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Minify_Controller_Base' not found in wp-content/plugins/minqueue/PHP-Minify-Lib/Minify/Controller/MinApp.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/minqueue/minqueue-helper-tool.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Minify_Controller_Base' not found in wp-content/plugins/minqueue/PHP-Minify-Lib/Minify/Controller/Version1.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Minify_Controller_Base' not found in wp-content/plugins/minqueue/PHP-Minify-Lib/Minify/Controller/Files.php:27
    • > PHP Fatal error
      The script "class.JavaScriptPacker.php" is required. Please see: http://code.google.com/p/minify/source/browse/trunk/min/lib/Minify/Packer.php in wp-content/plugins/minqueue/PHP-Minify-Lib/Minify/Packer.php on line 21

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: style, script, minify, concatenate

minqueue/plugin.php 92% from 13 tests

The primary PHP file in "MinQueue" version 1.1.2 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("minqueue.php" instead of "plugin.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin6,927 lines of code in 46 files:
LanguageFilesBlank linesComment linesLines of code
PHP441,5434,2136,666
Java17477231
JavaScript1192030

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
  • Method cyclomatic complexity should be reduced to less than 100 (currently 155)
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity29.53
▷ Minimum class complexity1.00
▷ Maximum class complexity229.00
Average method complexity5.37
▷ Minimum method complexity1.00
▷ Maximum method complexity155.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes53
▷ Abstract classes23.77%
▷ Concrete classes5196.23%
▷ Final classes00.00%
Methods347
▷ Static methods6418.44%
▷ Public methods21762.54%
▷ Protected methods5816.71%
▷ Private methods7220.75%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants126
▷ Global constants9978.57%
▷ Class constants2721.43%
▷ Public constants27100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin