Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼644.28ms] Passed 4 tests
An overview of server-side resources used by Deliverea Shipping
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.83 ▲0.12 | 42.30 ▲22.13 |
Dashboard /wp-admin | 3.06 ▲0.00 | 47.13 ▲0.29 |
Posts /wp-admin/edit.php | 3.11 ▼0.01 | 47.63 ▼4.56 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 89.77 ▼2,573.70 |
Media Library /wp-admin/upload.php | 3.00 ▲0.00 | 38.07 ▲0.86 |
Server storage [IO: ▲1.29MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 87 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Deliverea Shipping
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,713 ▲76 | 16.24 ▲0.67 | 12.22 ▼0.55 | 48.57 ▼2.05 |
Dashboard /wp-admin | 2,967 ▲33 | 6.00 ▲0.06 | 161.84 ▼29.14 | 113.15 ▼6.29 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.73 ▲0.02 | 77.77 ▲12.70 | 98.31 ▼3.36 |
Add New Post /wp-admin/post-new.php | 1,683 ▼0 | 18.72 ▲2.17 | 417.14 ▲9.61 | 123.15 ▲3.59 |
Media Library /wp-admin/upload.php | 1,807 ▼0 | 5.04 ▼0.01 | 168.78 ▼16.80 | 125.59 ▼2.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
- 31× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Deliverea\\Response\\AbstractResponse' not found in wp-content/plugins/deliverea-shipping/vendor/deliverea/deliverea-php/src/Deliverea/Response/GetShipmentLabelResponse.php:7
- > PHP Fatal error
Uncaught Error: Class 'Deliverea\\Response\\AbstractResponse' not found in wp-content/plugins/deliverea-shipping/vendor/deliverea/deliverea-php/src/Deliverea/Response/GetShipmentResponse.php:13
- > PHP Fatal error
Uncaught Error: Class 'Deliverea\\Response\\AbstractResponse' not found in wp-content/plugins/deliverea-shipping/vendor/deliverea/deliverea-php/src/Deliverea/Response/GetShipmentsResponse.php:11
- > PHP Fatal error
Uncaught Error: Class 'Deliverea\\Response\\AbstractResponse' not found in wp-content/plugins/deliverea-shipping/vendor/deliverea/deliverea-php/src/Deliverea/Response/NewShipmentResponse.php:7
- > PHP Notice
Undefined index: DELIVEREASHIPPING in wp-content/plugins/deliverea-shipping/templates/pickup-points.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Deliverea\\Model\\AbstractDeliverea' not found in wp-content/plugins/deliverea-shipping/vendor/deliverea/deliverea-php/src/Deliverea/Model/DetailedCollection.php:6
- > PHP Notice
Undefined index: DELIVEREASHIPPING in wp-content/plugins/deliverea-shipping/templates/config.php on line 3
- > PHP Notice
Undefined index: DELIVEREASHIPPING in wp-content/plugins/deliverea-shipping/templates/list.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'Deliverea\\Model\\AbstractDeliverea' not found in wp-content/plugins/deliverea-shipping/vendor/deliverea/deliverea-php/src/Deliverea/Model/Carrier.php:6
- > PHP Fatal error
Uncaught Error: Class 'Deliverea\\Model\\AbstractDeliverea' not found in wp-content/plugins/deliverea-shipping/vendor/deliverea/deliverea-php/src/Deliverea/Model/Address.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== deliverea-shipping ===
) - Tags: You are using too many tags: 14 tag instead of maximum 10
deliverea-shipping/delivereashipping.php 92% from 13 tests
The main PHP file in "Deliverea Shipping" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("deliverea-shipping.php" instead of "delivereashipping.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin4,750 lines of code in 77 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 58 | 766 | 1,022 | 2,930 |
JavaScript | 8 | 154 | 183 | 865 |
SVG | 1 | 0 | 0 | 685 |
Markdown | 1 | 30 | 0 | 120 |
CSS | 6 | 22 | 19 | 104 |
JSON | 3 | 0 | 0 | 46 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 3.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 1.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 6 | |
Classes | 45 | |
▷ Abstract classes | 2 | 4.44% |
▷ Concrete classes | 43 | 95.56% |
▷ Final classes | 1 | 2.33% |
Methods | 279 | |
▷ Static methods | 4 | 1.43% |
▷ Public methods | 268 | 96.06% |
▷ Protected methods | 1 | 0.36% |
▷ Private methods | 10 | 3.58% |
Functions | 9 | |
▷ Named functions | 2 | 22.22% |
▷ Anonymous functions | 7 | 77.78% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) img/icon.png | 1.12KB | 0.00KB | ▼ 100.00% |