84% wp-local-toolbox

Code Review | WP Local Toolbox

WordPress plugin WP Local Toolbox scored84%from 54 tests.

About plugin

  • Plugin page: wp-local-toolbox
  • Plugin version: 1.2.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 23, 2015
  • Latest release: Jun 25, 2015
  • Number of updates: 46
  • Update frequency: every 1.5 days
  • Top authors: joeguilmette (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

100+ active /4,898 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

An overview of server-side resources used by WP Local Toolbox
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0342.28 ▼3.63
Dashboard /wp-admin3.33 ▲0.0351.82 ▼3.10
Posts /wp-admin/edit.php3.38 ▲0.0349.24 ▲2.29
Add New Post /wp-admin/post-new.php5.91 ▲0.0394.91 ▼7.17
Media Library /wp-admin/upload.php3.26 ▲0.0338.87 ▼0.59

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by WP Local Toolbox
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.32 ▼0.921.82 ▼0.5641.44 ▼5.31
Dashboard /wp-admin2,206 ▲185.83 ▲0.95121.99 ▲6.1640.05 ▼2.73
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0141.10 ▲3.5036.01 ▲2.40
Add New Post /wp-admin/post-new.php1,514 ▼2917.64 ▼0.56662.48 ▲5.3465.57 ▲13.81
Media Library /wp-admin/upload.php1,385 ▼04.20 ▼0.0196.03 ▼4.5646.72 ▲0.86

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

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)
Good news, no errors were detected

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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wp-local-toolbox/toolbox/lib/airplane-mode/airplane-mode.php:63

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: simple, admin, developing, notification, responsive...

wp-local-toolbox/wplt-loader.php 92% from 13 tests

"WP Local Toolbox" version 1.2.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-local-toolbox.php" instead of "wplt-loader.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin743 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP4226484584
Markdown3640131
CSS23028

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity31.00
▷ Minimum class complexity9.00
▷ Maximum class complexity53.00
Average method complexity2.76
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods34
▷ Static methods25.88%
▷ Public methods3294.12%
▷ Protected methods12.94%
▷ Private methods12.94%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
There were not PNG files found in your plugin