WordPress plugin WooTrack scored73%from 54 tests.

About plugin

  • Plugin page: wootrack-startrac...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.3
  • WordPress version: 6.3.1
  • First release: Nov 3, 2015
  • Latest release: Nov 3, 2015
  • Number of updates: 2
  • Update frequency: every 2.0 days
  • Top authors: derwentx (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /790 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by WooTrack
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.44 ▼0.52
Dashboard /wp-admin3.31 ▲0.0150.08 ▲1.62
Posts /wp-admin/edit.php3.36 ▲0.0146.30 ▲3.59
Add New Post /wp-admin/post-new.php5.89 ▲0.0194.76 ▲1.22
Media Library /wp-admin/upload.php3.24 ▲0.0136.17 ▲2.83

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by WooTrack
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲6814.74 ▲0.311.73 ▲0.0346.90 ▲1.83
Dashboard /wp-admin2,206 ▲185.83 ▲0.78101.20 ▼3.5039.65 ▼4.49
Posts /wp-admin/edit.php2,091 ▲21.98 ▼0.1439.53 ▲4.0036.65 ▲1.82
Add New Post /wp-admin/post-new.php1,536 ▲323.29 ▲0.07649.65 ▼27.0249.85 ▼10.83
Media Library /wp-admin/upload.php1,394 ▲64.23 ▲0.02102.00 ▼6.1443.12 ▼1.75

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

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

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
The following issues need your attention
  • 5× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/wootrack-startrack-shipping-for-woocommerce/wootrack.php:87
    • > PHP Fatal error
      Uncaught Error: Class 'SoapClient' not found in wp-content/plugins/wootrack-startrack-shipping-for-woocommerce/WSSecurity.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wootrack-startrack-shipping-for-woocommerce/Wootrack_Register_Shipping.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'SoapClient' not found in wp-content/plugins/wootrack-startrack-shipping-for-woocommerce/WSSecurity.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/wootrack-startrack-shipping-for-woocommerce/WC_StarTrackExpress.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Plugin configuration), #2 (Shipping methods displayed to customer)
The official readme.txt might help

wootrack-startrack-shipping-for-woocommerce/wootrack.php 85% from 13 tests

The principal PHP file in "WooTrack" v. 0.1 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wootrack-startrack-shipping-for-woocommerce.php" instead of "wootrack.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis 5% from 3 tests

File types 0% from 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
Please fix the following items
  • For security reasons, never distribute binary or executable files with your plugin
    • .crt - Security Certificate in Firefox, IE, Chrome, Safari
      • wp-content/plugins/wootrack-startrack-shipping-for-woocommerce/secure/cacert.crt
6,062 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
XML2024,722
PHP123597571,302
Markdown128038

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity18.33
▷ Minimum class complexity1.00
▷ Maximum class complexity94.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes222.22%
▷ Concrete classes777.78%
▷ Final classes00.00%
Methods102
▷ Static methods00.00%
▷ Public methods7270.59%
▷ Protected methods2827.45%
▷ Private methods21.96%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants250.00%
▷ Class constants250.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.31MB with 0.22MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png265.41KB72.09KB▼ 72.84%
assets/screenshot-2.png51.86KB14.80KB▼ 71.46%