89% jw-woo-order-prefix

Code Review | JW Woo Order Prefix

WordPress plugin JW Woo Order Prefix scored89%from 54 tests.

About plugin

  • Plugin page: jw-woo-order-prefix
  • Plugin version: 0.1.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.4.2
  • WordPress version: 6.3.1
  • First release: Jun 17, 2020
  • Latest release: Jun 17, 2020
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: ijasonwhite (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /381 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by JW Woo Order Prefix
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0340.16 ▼0.37
Dashboard /wp-admin3.34 ▲0.0349.81 ▲0.75
Posts /wp-admin/edit.php3.39 ▲0.0348.58 ▼3.85
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.61 ▼11.66
Media Library /wp-admin/upload.php3.26 ▲0.0341.56 ▲5.88

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

JW Woo Order Prefix: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▲0.051.83 ▲0.1141.90 ▲0.12
Dashboard /wp-admin2,195 ▲235.65 ▲0.0691.68 ▼13.4039.94 ▲0.17
Posts /wp-admin/edit.php2,097 ▼61.96 ▼0.0440.30 ▲2.4836.12 ▼0.59
Add New Post /wp-admin/post-new.php1,545 ▲1423.26 ▲0.01660.24 ▲35.5960.89 ▼11.60
Media Library /wp-admin/upload.php1,397 ▼04.21 ▼0.04106.36 ▼10.7947.97 ▼2.01

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments

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)
The smoke test was a success, however most plugin functionality was not tested

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === jw-woo-order-prefix === )
You can look at the official readme.txt

jw-woo-order-prefix/jw-woo-order-prefix.php 92% from 13 tests

The entry point to "JW Woo Order Prefix" version 0.1.3 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected152 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14879152

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity4.50
▷ Minimum class complexity2.00
▷ Maximum class complexity7.00
Average method complexity1.78
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods9100.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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin