84% orderstorm-wordpress-toolbox

Code Review | OrderStorm WordPress Toolbox

WordPress plugin OrderStorm WordPress Toolbox scored 84% from 54 tests.

About plugin

  • Plugin page: orderstorm-wordpr...
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.4.1
  • WordPress version: 6.3.1
  • First release: Nov 26, 2011
  • Latest release: Jul 12, 2012
  • Number of updates: 21
  • Update frequency: every 66.8 days
  • Top authors: carlosman (90.48%)OrderStorm (14.29%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,513 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
Installer ran successfully

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

An overview of server-side resources used by OrderStorm WordPress Toolbox
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.61 ▼1.52
Dashboard /wp-admin3.33 ▲0.0353.61 ▲0.79
Posts /wp-admin/edit.php3.38 ▲0.0249.02 ▲0.56
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.26 ▼9.57
Media Library /wp-admin/upload.php3.25 ▲0.0233.59 ▲2.26

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for OrderStorm WordPress Toolbox
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.31 ▼1.231.69 ▼0.1840.20 ▼8.44
Dashboard /wp-admin2,206 ▲185.80 ▲0.9397.35 ▼6.9040.41 ▼3.26
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0439.72 ▼4.0035.31 ▼2.22
Add New Post /wp-admin/post-new.php1,533 ▼022.82 ▼0.52571.17 ▼78.2855.91 ▼5.27
Media Library /wp-admin/upload.php1,382 ▼64.24 ▼0.0198.03 ▼5.1239.77 ▼3.83

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/orderstorm-wordpress-toolbox/orderstorm-wordpress-toolbox.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Donate link: Invalid URI found ("")
Please take inspiration from this readme.txt

orderstorm-wordpress-toolbox/orderstorm-wordpress-toolbox.php Passed 13 tests

The main PHP file in "OrderStorm WordPress Toolbox" ver. 0.2 adds more information about the plugin and also serves as the entry point for this plugin
127 characters long description:
A plugin containing code snippets to re-implement WordPress default widgets (recent posts, categories, archives) as shortcodes.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin208 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13326191
JavaScript11017

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin