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.04MB] [CPU: ▼3.56ms] Passed 4 tests
Server-side resources used by Parcel Pro
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 39.61 ▼3.10 |
Dashboard /wp-admin | 3.35 ▲0.00 | 45.77 ▼15.01 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 48.51 ▲0.83 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 100.85 ▲7.95 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.05 ▲3.04 |
Server storage [IO: ▲0.15MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
Parcel Pro: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲169 | 13.92 ▼0.79 | 8.65 ▲7.04 | 36.88 ▼7.69 |
Dashboard /wp-admin | 2,216 ▲36 | 5.80 ▲0.13 | 98.83 ▲7.01 | 42.59 ▲1.49 |
Posts /wp-admin/edit.php | 2,129 ▲29 | 2.28 ▲0.34 | 41.70 ▲0.67 | 35.06 ▼0.68 |
Add New Post /wp-admin/post-new.php | 1,559 ▲24 | 23.31 ▼2.02 | 657.91 ▲22.36 | 36.92 ▼23.47 |
Media Library /wp-admin/upload.php | 1,429 ▲26 | 4.38 ▲0.12 | 96.97 ▲1.07 | 41.91 ▲1.66 |
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 did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
The following issues need your attention
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/woo-parcel-pro/admin/partials/parcelpro-admin-actions-bulk.php
- > /wp-content/plugins/woo-parcel-pro/woocommerce-parcelpro.php
- > /wp-content/plugins/woo-parcel-pro/public/partials/parcelpro-public-order-tracking.php
- 35× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant PARCELPRO_REQUIRED_PHP_VERSION - assumed 'PARCELPRO_REQUIRED_PHP_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-parcel-pro/admin/partials/parcelpro-requirements-error.php on line 21
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/woo-parcel-pro/admin/data/parcelpro-shipping-settings-fields.php:23
- > PHP Warning
Use of undefined constant PARCELPRO_SHOPSUNITED - assumed 'PARCELPRO_SHOPSUNITED' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-parcel-pro/admin/partials/parcelpro-admin-actions-before.php on line 16
- > PHP Warning
require_once(ABSPATHwp-admin/admin.php): failed to open stream: No such file or directory in wp-content/plugins/woo-parcel-pro/admin/partials/parcelpro-admin-actions-package.php on line 16
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/woo-parcel-pro/admin/partials/parcelpro-admin-order-actions-before.php:17
- > PHP Warning
Use of undefined constant PARCELPRO_NAME - assumed 'PARCELPRO_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-parcel-pro/admin/partials/parcelpro-requirements-error.php on line 17
- > PHP Notice
Undefined variable: ship_link in wp-content/plugins/woo-parcel-pro/admin/partials/parcelpro-admin-order-actions-before.php on line 16
- > PHP Warning
Use of undefined constant PARCELPRO_SHOPSUNITED - assumed 'PARCELPRO_SHOPSUNITED' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-parcel-pro/admin/partials/parcelpro-admin-actions-after.php on line 16
- > PHP Notice
Undefined variable: label_link in wp-content/plugins/woo-parcel-pro/admin/partials/parcelpro-admin-actions-after.php on line 16
- > PHP Warning
Use of undefined constant PARCELPRO_SHOPSUNITED - assumed 'PARCELPRO_SHOPSUNITED' (this will throw an Error in a future version of PHP) in wp-content/plugins/woo-parcel-pro/admin/partials/parcelpro-admin-actions-after.php on line 16
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Contributors: Plugin contributors field is missing
- Tags: There are too many tags (12 tag instead of maximum 10)
woo-parcel-pro/woocommerce-parcelpro.php 69% from 13 tests
This is the main PHP file of "Parcel Pro" version 1.6.16, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
- Main file name: Name the main plugin file the same as the plugin slug ("woo-parcel-pro.php" instead of "woocommerce-parcelpro.php")
- Domain Path: The domain path folder does not exist ("/languages")
- Description: Keep the plugin description shorter than 140 characters (currently 176 characters long)
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
Success! There were no dangerous files found in this plugin2,531 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 284 | 821 | 1,780 |
JavaScript | 2 | 55 | 5 | 270 |
Markdown | 1 | 89 | 0 | 216 |
CSS | 2 | 31 | 0 | 195 |
SVG | 4 | 0 | 4 | 40 |
JSON | 1 | 0 | 0 | 30 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 39.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 126.00 |
Average method complexity | 3.48 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 54 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 10.00% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin