Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.28MB] [CPU: ▼3.56ms] Passed 4 tests
An overview of server-side resources used by DeliveryPlus
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.29 | 40.45 ▲0.92 |
Dashboard /wp-admin | 3.62 ▲0.31 | 46.70 ▼4.31 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 67.10 ▲17.89 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 91.31 ▼15.21 |
Media Library /wp-admin/upload.php | 3.48 ▲0.24 | 37.71 ▲4.38 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for DeliveryPlus
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.48 ▲0.19 | 1.65 ▲0.12 | 40.25 ▼0.05 |
Dashboard /wp-admin | 2,209 ▲24 | 4.80 ▼0.06 | 108.20 ▲5.69 | 39.02 ▼4.43 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▲0.04 | 38.87 ▲4.20 | 34.10 ▲2.62 |
Add New Post /wp-admin/post-new.php | 1,529 ▼13 | 18.22 ▼0.24 | 597.72 ▲2.40 | 56.32 ▼18.46 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.22 ▲0.02 | 96.99 ▲3.77 | 44.11 ▲4.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/deliveryplus-by-invisible-dragon/tests/bootstrap.php
- 17× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'class.DeliveryPlus_Filters.php' (include_path='.:/usr/share/php') in wp-content/plugins/deliveryplus-by-invisible-dragon/tests/test-weight-filter.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/deliveryplus-by-invisible-dragon/tests/test-replacements.php:23
- > PHP Fatal error
Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/deliveryplus-by-invisible-dragon/class.DeliveryPlus_Shipping_Method.php:3
- > PHP Fatal error
Uncaught Error: Class 'DeliveryPlus_Filter_Number' not found in wp-content/plugins/deliveryplus-by-invisible-dragon/class.DeliveryPlus_Filter_Weight.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/deliveryplus-by-invisible-dragon/includes/filters.php:13
- > PHP Warning
require_once(class.DeliveryPlus_Filters.php): failed to open stream: No such file or directory in wp-content/plugins/deliveryplus-by-invisible-dragon/tests/test-weight-filter.php on line 3
- > PHP Fatal error
Uncaught Error: Call to a member function get_meta() on null in wp-content/plugins/deliveryplus-by-invisible-dragon/includes/single-options.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/deliveryplus-by-invisible-dragon/id-delivery.php:18
- > PHP Fatal error
Uncaught Error: Class 'DeliveryPlus_Filter_Set' not found in wp-content/plugins/deliveryplus-by-invisible-dragon/class.DeliveryPlus_Filter_Override.php:3
- > PHP Fatal error
Uncaught Error: Class 'DeliveryPlus_Filter_Set' not found in wp-content/plugins/deliveryplus-by-invisible-dragon/class.DeliveryPlus_Filter_Category.php:3
- > PHP Fatal error
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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: woocommerce, delivery, acf, advancedcustomfields, gravityforms
deliveryplus-by-invisible-dragon/id-delivery.php 77% from 13 tests
"DeliveryPlus" version 1.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Requires PHP: The required version number must match the one declared in readme.txt ("7.2" instead of "5.6")
- Requires at least: The required version number must match the one declared in readme.txt ("6.0" instead of "6.9")
- Main file name: Name the main plugin file the same as the plugin slug ("deliveryplus-by-invisible-dragon.php" instead of "id-delivery.php")
Code Analysis Passed 3 tests
File types Passed 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
No dangerous file extensions were detected1,871 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 502 | 176 | 1,358 |
Bourne Shell | 3 | 70 | 48 | 266 |
JavaScript | 1 | 36 | 14 | 139 |
Markdown | 1 | 26 | 0 | 50 |
XML | 2 | 4 | 12 | 49 |
SVG | 1 | 0 | 1 | 9 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 7.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 2 | 9.52% |
▷ Concrete classes | 19 | 90.48% |
▷ Final classes | 0 | 0.00% |
Methods | 123 | |
▷ Static methods | 66 | 53.66% |
▷ Public methods | 122 | 99.19% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 0.81% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
No PNG files were detected