89% woo-shipping-tracker-customer-notifications

Code Review | Woo Shipping Tracker

WordPress plugin Woo Shipping Tracker scored89%from 54 tests.

About plugin

  • Plugin page: woo-shipping-trac...
  • Plugin version: 1.0.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4.2
  • WordPress version: 6.3.1
  • First release: Mar 13, 2016
  • Latest release: Mar 13, 2016
  • Number of updates: 6
  • Update frequency: every 21.8 days
  • Top authors: wp-client (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,115 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.31ms] Passed 4 tests

Server-side resources used by Woo Shipping Tracker
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.33 ▼3.18
Dashboard /wp-admin3.31 ▲0.0047.75 ▼4.78
Posts /wp-admin/edit.php3.36 ▲0.0046.35 ▼1.43
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.11 ▼7.86
Media Library /wp-admin/upload.php3.23 ▲0.0039.17 ▲2.23

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Woo Shipping Tracker
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.72 ▲0.561.73 ▼0.1342.64 ▲1.31
Dashboard /wp-admin2,198 ▲215.62 ▼0.0688.05 ▼5.3138.59 ▼4.10
Posts /wp-admin/edit.php2,100 ▼02.16 ▲0.1835.99 ▼1.3535.00 ▼1.44
Add New Post /wp-admin/post-new.php1,526 ▼1123.65 ▲5.39668.66 ▲7.3073.90 ▲4.61
Media Library /wp-admin/upload.php1,397 ▼34.20 ▲0.0298.02 ▼7.6546.82 ▲2.91

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

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/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 need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === woo-shipping-tracker-customer-notifications === )
You can take inspiration from this readme.txt

woo-shipping-tracker-customer-notifications/woo-shipping-tracker-customer-notifications.php 92% from 13 tests

The entry point to "Woo Shipping Tracker" version 1.0.7 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: Please improve your description making it at least 10 characters long (currently 0 characters long)

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
No dangerous file extensions were detected2,280 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
CSS8681221,355
PHP614346710
JavaScript51345215

PHP code Passed 2 tests

An short overview of 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.44
Average class complexity17.00
▷ Minimum class complexity4.00
▷ Maximum class complexity34.00
Average method complexity3.46
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods26
▷ Static methods27.69%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
29 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/css/chosen/chosen-sprite@2x.png0.72KB0.83KB0.00%
assets/css/jqueryui/images/ui-icons_2e83ff_256x240.png4.44KB4.17KB▼ 6.02%
assets/css/jqueryui/images/ui-bg_glass_95_fef1ec_1x400.png0.32KB0.15KB▼ 54.82%
assets/css/colorbox/theme5/images/controls.png1.98KB2.04KB0.00%
assets/css/jqueryui/images/ui-bg_glass_65_ffffff_1x400.png0.20KB0.09KB▼ 57.49%