89% cf7orderstatusswitcher

Code Review | CF7 Order Status Switcher

WordPress plugin CF7 Order Status Switcher scored89%from 54 tests.

About plugin

  • Plugin page: cf7orderstatusswi...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Mar 28, 2023
  • Latest release: Mar 28, 2023
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: fgelio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /111 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼12.20ms] Passed 4 tests

This is a short check of server-side resources used by CF7 Order Status Switcher
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.41 ▼0.0525.14 ▼15.49
Dashboard /wp-admin3.34 ▲0.0347.28 ▼5.79
Posts /wp-admin/edit.php3.39 ▲0.0346.22 ▲1.91
Add New Post /wp-admin/post-new.php5.92 ▲0.0380.94 ▼26.20
Media Library /wp-admin/upload.php3.26 ▲0.0334.90 ▼1.32
CF7OrderStatusSwitcher /wp-admin/admin.php?page=cf7oss_plugin_settings3.2231.09

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for CF7 Order Status Switcher
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,465 ▼30613.13 ▼1.500.48 ▼1.5318.81 ▼24.84
Dashboard /wp-admin2,203 ▲155.83 ▲0.9493.87 ▼15.4039.76 ▼2.34
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0433.79 ▲0.5230.82 ▲0.13
Add New Post /wp-admin/post-new.php1,535 ▲2123.25 ▲5.56676.11 ▼17.2372.98 ▲20.44
Media Library /wp-admin/upload.php1,388 ▲34.15 ▼0.0094.29 ▼6.3642.02 ▼3.89
CF7OrderStatusSwitcher /wp-admin/admin.php?page=cf7oss_plugin_settings7971.8323.6925.97

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

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

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that require attention: The official readme.txt is a good inspiration

cf7orderstatusswitcher/cf7-order-status-switcher.php 92% from 13 tests

The entry point to "CF7 Order Status Switcher" version 1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("cf7orderstatusswitcher.php" instead of "cf7-order-status-switcher.php")

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
There were no executable files found in this plugin156 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP11711135
JavaScript11021
CSS1010

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions8
▷ Named functions8100.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 are no PNG files in this plugin