Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼10.43ms] Passed 4 tests
A check of server-side resources used by Pargo Smart Logistics Solutions
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.15 ▼10.36 |
Dashboard /wp-admin | 3.31 ▼0.04 | 43.71 ▼25.19 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.10 ▲5.35 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 88.74 ▼4.88 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.86 ▼1.29 |
Server storage [IO: ▲3.36MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 171 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
pargo_token |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Pargo Smart Logistics Solutions: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.24 ▼0.17 | 1.63 ▼0.13 | 37.28 ▼7.18 |
Dashboard /wp-admin | 2,195 ▲18 | 5.63 ▲0.06 | 89.56 ▼12.67 | 40.00 ▼1.89 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.96 ▼0.02 | 40.49 ▲1.42 | 36.08 ▲3.75 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.21 ▲0.18 | 662.59 ▼130.00 | 42.71 ▼8.20 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.18 ▼0.01 | 99.49 ▼2.32 | 43.32 ▼0.10 |
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
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- pargo_token
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/pargo/src/PargoAdmin/partials/pargo-admin-display.php
- > /wp-content/plugins/pargo/src/PargoPublic/partials/pargo-public-display.php
- 31× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Caster\\CutStub' not found in wp-content/plugins/pargo/lib/symfony/var-dumper/Caster/CutArrayStub.php:19
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Caster\\ConstStub' not found in wp-content/plugins/pargo/lib/symfony/var-dumper/Caster/ImgStub.php:17
- > PHP Fatal error
Uncaught Error: Class 'PargoWp\\PargoAdmin\\Pargo_Admin_API' not found in wp-content/plugins/pargo/src/Includes/Pargo_Orders.php:11
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Cloner\\AbstractCloner' not found in wp-content/plugins/pargo/lib/symfony/var-dumper/Cloner/VarCloner.php:17
- > PHP Fatal error
Uncaught Error: Interface 'Stringable' not found in wp-content/plugins/pargo/lib/symfony/polyfill-php80/PhpToken.php:19
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\VarDumper\\Cloner\\Stub' not found in wp-content/plugins/pargo/lib/symfony/var-dumper/Caster/TraceStub.php:21
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/pargo/src/Includes/Pargo_Wp_Shipping_Method.php:10
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Polyfill\\Php80\\PhpToken' not found in wp-content/plugins/pargo/lib/symfony/polyfill-php80/Resources/stubs/PhpToken.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\VarDumper\\Dumper\\ContextProvider\\ContextProviderInterface' not found in wp-content/plugins/pargo/lib/symfony/var-dumper/Dumper/ContextProvider/SourceContextProvider.php:26
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\VarDumper\\Dumper\\DataDumperInterface' not found in wp-content/plugins/pargo/lib/symfony/var-dumper/Dumper/AbstractDumper.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Screenshots: Screenshot #6 (Cart once point has been selected) image missing
- Tags: You are using too many tags: 11 tag instead of maximum 10
pargo/pargo-shipping.php 77% from 13 tests
"Pargo Smart Logistics Solutions" version 3.4.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 151 characters long)
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Main file name: Name the main plugin file the same as the plugin slug ("pargo.php" instead of "pargo-shipping.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected60,234 lines of code in 155 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 10 | 21 | 92 | 40,269 |
PHP | 115 | 2,025 | 3,133 | 13,569 |
JSON | 10 | 0 | 0 | 4,705 |
Vuejs Component | 8 | 80 | 13 | 1,009 |
Markdown | 7 | 152 | 0 | 525 |
CSS | 5 | 4 | 11 | 157 |
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 code | 0.54 |
Average class complexity | 18.84 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 166.00 |
Average method complexity | 4.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 82.00 |
Code structure | ||
---|---|---|
Namespaces | 19 | |
Interfaces | 6 | |
Traits | 1 | |
Classes | 87 | |
▷ Abstract classes | 2 | 2.30% |
▷ Concrete classes | 85 | 97.70% |
▷ Final classes | 10 | 11.76% |
Methods | 494 | |
▷ Static methods | 227 | 45.95% |
▷ Public methods | 398 | 80.57% |
▷ Protected methods | 21 | 4.25% |
▷ Private methods | 75 | 15.18% |
Functions | 120 | |
▷ Named functions | 100 | 83.33% |
▷ Anonymous functions | 20 | 16.67% |
Constants | 89 | |
▷ Global constants | 14 | 15.73% |
▷ Class constants | 75 | 84.27% |
▷ Public constants | 46 | 61.33% |
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.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/PargoAdmin/css/pargo_icon.png | 21.78KB | 10.35KB | ▼ 52.48% |
assets/images/pargo_logo.png | 2.42KB | 1.67KB | ▼ 31.07% |