89% asset-queue-manager

Code Review | Asset Queue Manager

WordPress plugin Asset Queue Manager scored89%from 54 tests.

About plugin

  • Plugin page: asset-queue-manager
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.4
  • WordPress version: 6.3.1
  • First release: Oct 24, 2014
  • Latest release: Mar 10, 2016
  • Number of updates: 11
  • Update frequency: every 45.7 days
  • Top authors: NateWr (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

400+ active /14,280 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.49ms] Passed 4 tests

A check of server-side resources used by Asset Queue Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.56 ▼5.89
Dashboard /wp-admin3.32 ▲0.0245.50 ▼1.95
Posts /wp-admin/edit.php3.43 ▲0.0843.76 ▲0.31
Add New Post /wp-admin/post-new.php5.90 ▲0.0178.17 ▼10.13
Media Library /wp-admin/upload.php3.24 ▲0.0133.53 ▲0.01

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

Asset Queue Manager: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,258 ▲51213.79 ▼0.5011.47 ▲9.4439.36 ▼3.81
Dashboard /wp-admin2,209 ▲214.84 ▼0.1098.39 ▼7.4938.87 ▼5.22
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0042.21 ▲6.3137.40 ▲1.81
Add New Post /wp-admin/post-new.php1,534 ▲1523.06 ▼0.14664.76 ▼10.3650.55 ▼8.15
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.0595.97 ▼10.8341.85 ▼2.18

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: Please add images for these screenshots: #1 (View details about assets enqueued in the head or footer. Dequeue them or view them for copying and minifying on your own.), #2 (View details about assets that are being dequeued by this plugin. Requeue them or view them for copying and minifying on your own.)
You can look at the official readme.txt

asset-queue-manager/asset-queue-manager.php 92% from 13 tests

This is the main PHP file of "Asset Queue Manager" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected741 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP199154282
LESS14411244
JavaScript26842214
CSS1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity35.00
▷ Minimum class complexity35.00
▷ Maximum class complexity35.00
Average method complexity2.70
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods20
▷ Static methods15.00%
▷ Public methods20100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png46.57KB21.16KB▼ 54.57%
screenshot-2.png40.96KB17.68KB▼ 56.84%