84% woo-tracking-the-courier-guy

Code Review | Woo Tracking for The Courier Guy

WordPress plugin Woo Tracking for The Courier Guy scored84%from 54 tests.

About plugin

  • Plugin page: woo-tracking-the-...
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.1
  • WordPress version: 6.3.1
  • First release: Aug 14, 2017
  • Latest release: Dec 5, 2017
  • Number of updates: 25
  • Update frequency: every 4.6 days
  • Top authors: francdore (96%)Otto42 (8%)

Code review

54 tests

User reviews

4 reviews

Install metrics

80+ active /3,011 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.67MB] [CPU: ▼19.98ms] Passed 4 tests

A check of server-side resources used by Woo Tracking for The Courier Guy
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.57 ▼5.80
Dashboard /wp-admin3.34 ▼0.0146.05 ▼20.34
Posts /wp-admin/edit.php3.39 ▲0.0349.39 ▲0.91
Add New Post /wp-admin/post-new.php3.16 ▼2.7238.68 ▼53.22
Media Library /wp-admin/upload.php3.26 ▲0.0334.12 ▼0.56

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Woo Tracking for The Courier Guy
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.37 ▲0.141.68 ▼0.0340.80 ▼3.23
Dashboard /wp-admin2,200 ▲235.68 ▲0.0689.96 ▼8.7236.68 ▼9.40
Posts /wp-admin/edit.php2,102 ▲51.98 ▼0.0239.11 ▲5.3035.06 ▼0.64
Add New Post /wp-admin/post-new.php1,528 ▼523.30 ▲0.27641.27 ▼31.0553.86 ▼4.41
Media Library /wp-admin/upload.php1,402 ▼14.23 ▲0.0893.21 ▼5.7643.48 ▼2.95

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • 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
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-tracking-the-courier-guy/woo-tracking-the-courier-guy.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: tracking, courier, woocommerce, the courier guy

woo-tracking-the-courier-guy/woo-tracking-the-courier-guy.php Passed 13 tests

"Woo Tracking for The Courier Guy" version 1.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
108 characters long description:
This is a simple plugin to display tracking information for The Courier Guy on your WooCommerce orders page.

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
Success! There were no dangerous files found in this plugin173 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12844173

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.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