84% simplexis-woocommerce-backordered-products

Code Review | SimplexIS Woocommerce Backordered Products

WordPress plugin SimplexIS Woocommerce Backordered Products scored84%from 54 tests.

About plugin

  • Plugin page: simplexis-woocomm...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6.1
  • WordPress version: 6.3.1
  • First release: Oct 6, 2013
  • Latest release: Oct 10, 2013
  • Number of updates: 15
  • Update frequency: every 0.3 days
  • Top authors: JeroenVanOort (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /984 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.01MB] [CPU: ▼13.65ms] Passed 4 tests

An overview of server-side resources used by SimplexIS Woocommerce Backordered Products
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.78 ▼5.76
Dashboard /wp-admin3.32 ▼0.0249.84 ▼14.44
Posts /wp-admin/edit.php3.37 ▲0.0247.10 ▼10.17
Add New Post /wp-admin/post-new.php5.90 ▲0.0283.78 ▼24.23
Media Library /wp-admin/upload.php3.24 ▲0.0239.56 ▲1.63
Backordered products /wp-admin/admin.php?page=simplexis-woocommerce-backordered-products3.2030.72

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

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

Browser metrics Passed 4 tests

Checking browser requirements for SimplexIS Woocommerce Backordered Products
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.28 ▲0.302.13 ▲0.4446.17 ▲4.64
Dashboard /wp-admin2,195 ▲185.63 ▼0.0485.86 ▼4.4840.58 ▲2.35
Posts /wp-admin/edit.php2,100 ▼31.97 ▼0.0235.73 ▼0.9333.28 ▼1.78
Add New Post /wp-admin/post-new.php1,526 ▼023.39 ▼0.16697.93 ▲34.0155.20 ▼1.87
Media Library /wp-admin/upload.php1,403 ▲94.18 ▼0.02100.05 ▼1.1545.97 ▼0.41
Backordered products /wp-admin/admin.php?page=simplexis-woocommerce-backordered-products7902.0324.7628.99

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simplexis-woocommerce-backordered-products/simplexis-woocommerce-backordered-products.php:11

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 Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: woocommerce, backorder

simplexis-woocommerce-backordered-products/simplexis-woocommerce-backordered-products.php Passed 13 tests

The main PHP script in "SimplexIS Woocommerce Backordered Products" version 1.1 is automatically included on every request by WordPress
84 characters long description:
This plugin will create a submenu page, showing a table of all backordered products.

Code Analysis Passed 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
Everything looks great! No dangerous files found in this plugin64 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP16857
Markdown1407

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.05
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
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
There were not PNG files found in your plugin