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 successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼8.61ms] Passed 4 tests
This is a short check of server-side resources used by TrackMage - Woo Shipment Tracking
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.75 ▼3.84 |
Dashboard /wp-admin | 3.31 ▼0.04 | 42.09 ▼18.63 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.15 ▼2.30 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 95.98 ▼9.66 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.53 ▼0.50 |
Server storage [IO: ▲6.13MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 332 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for TrackMage - Woo Shipment Tracking
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲68 | 14.21 ▼0.11 | 1.75 ▲0.01 | 39.26 ▼4.14 |
Dashboard /wp-admin | 2,195 ▲15 | 5.62 ▲0.01 | 89.61 ▼3.68 | 39.90 ▼3.65 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.94 ▼0.21 | 34.90 ▼2.10 | 34.16 ▼1.82 |
Add New Post /wp-admin/post-new.php | 1,526 ▼4 | 23.28 ▲0.17 | 601.48 ▼69.66 | 58.88 ▲7.28 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.24 ▲0.03 | 99.56 ▼2.16 | 40.59 ▼5.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 82× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/trackmage-woo-shipment-tracking/vendor/guzzlehttp/psr7/src/MultipartStream.php:13
- > PHP Fatal error
Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/trackmage-woo-shipment-tracking/vendor/psr/log/Psr/Log/NullLogger.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/trackmage-woo-shipment-tracking/vendor/guzzlehttp/psr7/src/Request.php:13
- > PHP Parse error
syntax error, unexpected '|', expecting '{' in wp-content/plugins/trackmage-woo-shipment-tracking/vendor/symfony/polyfill-intl-normalizer/bootstrap80.php on line 18
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Cookie\\CookieJarInterface' not found in wp-content/plugins/trackmage-woo-shipment-tracking/vendor/guzzlehttp/guzzle/src/Cookie/CookieJar.php:10
- > PHP Fatal error
Uncaught Error: Interface 'TrackMage\\WordPress\\Synchronization\\EntitySyncInterface' not found in wp-content/plugins/trackmage-woo-shipment-tracking/src/Synchronization/ShipmentItemSync.php:11
- > PHP Fatal error
Uncaught Error: Class 'TrackMage\\WordPress\\Repository\\AbstractRepository' not found in wp-content/plugins/trackmage-woo-shipment-tracking/src/Repository/BackgroundTaskRepository.php:5
- > PHP Fatal error
Uncaught Error: Class 'TrackMage\\WordPress\\Repository\\AbstractRepository' not found in wp-content/plugins/trackmage-woo-shipment-tracking/src/Repository/LogRepository.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/trackmage-woo-shipment-tracking/vendor/psr/log/Psr/Log/Test/LoggerInterfaceTest.php:15
- > PHP Fatal error
Uncaught Error: Interface 'TrackMage\\WordPress\\Synchronization\\EntitySyncInterface' not found in wp-content/plugins/trackmage-woo-shipment-tracking/src/Synchronization/ShipmentSync.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: shipment tracking, tracking, order, order tracking, delivery...
trackmage-woo-shipment-tracking/trackmage.php 85% from 13 tests
Analyzing the main PHP file in "TrackMage - Woo Shipment Tracking" version 2.0.2
Please take the time 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
- Main file name: The principal plugin file should be the same as the plugin slug ("trackmage-woo-shipment-tracking.php" instead of "trackmage.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin72,084 lines of code in 294 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 205 | 3,225 | 7,821 | 32,850 |
CSS | 10 | 1,499 | 47 | 14,107 |
JavaScript | 29 | 2,789 | 2,529 | 13,061 |
JSON | 14 | 0 | 0 | 6,432 |
Markdown | 17 | 1,269 | 0 | 3,810 |
Sass | 5 | 167 | 1 | 1,144 |
PO File | 1 | 125 | 150 | 384 |
SVG | 5 | 1 | 2 | 137 |
YAML | 6 | 27 | 3 | 128 |
XML | 1 | 2 | 0 | 21 |
Dockerfile | 1 | 8 | 0 | 10 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
The following items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 15.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 3.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 26 | |
Interfaces | 21 | |
Traits | 5 | |
Classes | 131 | |
▷ Abstract classes | 2 | 1.53% |
▷ Concrete classes | 129 | 98.47% |
▷ Final classes | 28 | 21.71% |
Methods | 1,081 | |
▷ Static methods | 233 | 21.55% |
▷ Public methods | 889 | 82.24% |
▷ Protected methods | 10 | 0.93% |
▷ Private methods | 182 | 16.84% |
Functions | 204 | |
▷ Named functions | 83 | 40.69% |
▷ Anonymous functions | 121 | 59.31% |
Constants | 227 | |
▷ Global constants | 84 | 37.00% |
▷ Class constants | 143 | 63.00% |
▷ Public constants | 143 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.10MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/dist/images/trackmage_logo_big.png | 49.87KB | 22.75KB | ▼ 54.38% |
assets/dist/images/green-star.png | 1.12KB | 0.52KB | ▼ 53.26% |
assets/dist/images/tm-support.png | 50.68KB | 21.98KB | ▼ 56.62% |
assets/dist/images/trackmage-icon-white-16x16.png | 0.39KB | 0.53KB | 0.00% |