90% wp-utility-script-runner

Code Review | WP Utility Script Runner

WordPress plugin WP Utility Script Runner scored90%from 54 tests.

About plugin

  • Plugin page: wp-utility-script...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.0
  • WordPress version: 6.3.1
  • First release: Aug 19, 2017
  • Latest release: Oct 22, 2018
  • Number of updates: 8
  • Update frequency: every 53.6 days
  • Top authors: burlingtonbytes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,601 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.10MB] [CPU: ▲4.68ms] Passed 4 tests

This is a short check of server-side resources used by WP Utility Script Runner
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1045.09 ▼0.27
Dashboard /wp-admin3.45 ▲0.1158.65 ▲7.60
Posts /wp-admin/edit.php3.56 ▲0.1751.49 ▲4.38
Add New Post /wp-admin/post-new.php6.03 ▲0.10102.51 ▲7.52
Media Library /wp-admin/upload.php3.37 ▲0.1042.35 ▲7.07
Utility Scripts /wp-admin/tools.php?page=wp-utility-script-runner3.3533.96

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

WP Utility Script Runner: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.51 ▲0.151.70 ▼0.2943.55 ▼4.91
Dashboard /wp-admin2,199 ▲195.56 ▼0.0788.24 ▲1.7339.98 ▲0.79
Posts /wp-admin/edit.php2,104 ▲41.96 ▼0.0534.94 ▼2.6135.21 ▼0.29
Add New Post /wp-admin/post-new.php1,529 ▲322.96 ▼0.63648.75 ▼53.7158.23 ▲4.15
Media Library /wp-admin/upload.php1,404 ▲104.10 ▼0.11113.13 ▲12.3147.55 ▼1.40
Utility Scripts /wp-admin/tools.php?page=wp-utility-script-runner9201.9227.5527.90

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: custom, developers, run-once, task, utilities...

wp-utility-script-runner/wp-utility-script-runner.php 92% from 13 tests

The entry point to "WP Utility Script Runner" version 1.1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin1,554 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP74378974
JavaScript3712297
CSS333283

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity91.00
▷ Minimum class complexity91.00
▷ Maximum class complexity91.00
Average method complexity5.09
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods22
▷ Static methods14.55%
▷ Public methods1045.45%
▷ Protected methods00.00%
▷ Private methods1254.55%
Functions8
▷ Named functions337.50%
▷ Anonymous functions562.50%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/images/ui-icons_555555_256x240.png6.82KB4.17KB▼ 38.82%
css/images/ui-icons_205677_256x240.png4.44KB4.17KB▼ 6.02%
css/images/ui-icons_444444_256x240.png6.83KB4.17KB▼ 38.86%
css/images/ui-icons_FFFFFF_256x240.png6.15KB4.17KB▼ 32.13%
css/images/ui-icons_777777_256x240.png6.83KB4.17KB▼ 38.92%