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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.17MB] [CPU: ▼13.10ms] Passed 4 tests
An overview of server-side resources used by Israeli Orange Delivery
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.72 ▼9.49 |
Dashboard /wp-admin | 3.56 ▲0.22 | 48.93 ▼14.31 |
Posts /wp-admin/edit.php | 3.61 ▲0.26 | 48.25 ▼3.78 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 84.22 ▼24.80 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 37.27 ▲0.02 |
Server storage [IO: ▲4.96MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 41 new files
Database: no new tables, 14 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
wc_iod_seller_company_postcode |
widget_recent-posts |
wc_iod_api_customer_code |
wc_iod_seller_company_name |
can_compress_scripts |
wc_iod_api_password |
wc_iod_seller_company_address_2 |
wc_iod_api_username |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Israeli Orange Delivery
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.48 ▼0.01 | 1.83 ▼0.10 | 42.84 ▲0.75 |
Dashboard /wp-admin | 2,203 ▲11 | 4.84 ▼0.07 | 111.44 ▲2.37 | 42.66 ▼1.19 |
Posts /wp-admin/edit.php | 2,089 ▼3 | 1.99 ▼0.07 | 35.95 ▼4.08 | 34.87 ▼1.76 |
Add New Post /wp-admin/post-new.php | 1,514 ▼14 | 17.57 ▼1.08 | 695.94 ▲67.05 | 52.76 ▼3.72 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.14 ▼0.08 | 95.51 ▼3.74 | 44.18 ▼0.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 14 options in the database
- wc_iod_api_customer_code
- can_compress_scripts
- wc_iod_seller_company_address_1
- widget_theysaidso_widget
- db_upgraded
- wc_iod_seller_company_name
- widget_recent-posts
- theysaidso_admin_options
- wc_iod_api_password
- wc_iod_seller_company_address_2
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'WC_IOD_PLUGIN_PATHincludes/libraries/TCPDF/tcpdf.php' (include_path='.:/usr/share/php') in wp-content/plugins/israeli-orange-delivery/includes/admin/class-wc-iod-admin-print-label.php on line 9
- > PHP Warning
require_once(WC_IOD_PLUGIN_PATHincludes/libraries/TCPDF/tcpdf.php): failed to open stream: No such file or directory in wp-content/plugins/israeli-orange-delivery/includes/admin/class-wc-iod-admin-print-label.php on line 9
- > PHP Warning
Use of undefined constant WC_IOD_PLUGIN_PATH - assumed 'WC_IOD_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/israeli-orange-delivery/includes/admin/class-wc-iod-admin-print-label.php on line 9
- > 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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: shipping, woocommerce, label, ecommerce, delivery...
israeli-orange-delivery/init.php 85% from 13 tests
The main file in "Israeli Orange Delivery" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important 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: It is recommended to name the main PHP file as the plugin slug ("israeli-orange-delivery.php" instead of "init.php")
Code Analysis 95% from 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
Everything looks great! No dangerous files found in this plugin46,526 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 29 | 1,564 | 11,674 | 46,526 |
PHP code 0% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please fix the following
- Class cyclomatic complexity should be reduced to less than 1000 (currently 4,349)
- Method cyclomatic complexity has to be reduced to less than 100 (currently 499)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 307.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4,349.00 |
Average method complexity | 9.87 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 499.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 1 | 4.76% |
Methods | 727 | |
▷ Static methods | 111 | 15.27% |
▷ Public methods | 450 | 61.90% |
▷ Protected methods | 276 | 37.96% |
▷ Private methods | 1 | 0.14% |
Functions | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
Constants | 86 | |
▷ Global constants | 86 | 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 images were found in this plugin