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
Install script ran successfully
Server metrics [RAM: ▼0.15MB] [CPU: ▼153.97ms] Passed 4 tests
Server-side resources used by D7SMS for Woocommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 44.35 ▲16.39 |
Dashboard /wp-admin | 2.99 ▼0.07 | 32.23 ▼15.37 |
Posts /wp-admin/edit.php | 3.04 ▼0.07 | 34.49 ▼10.05 |
Add New Post /wp-admin/post-new.php | 4.98 ▼0.46 | 81.24 ▼587.74 |
Media Library /wp-admin/upload.php | 2.99 ▼0.01 | 33.06 ▼2.72 |
Server storage [IO: ▲0.83MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 115 new files
Database: no new tables, 1 new option
New WordPress options |
---|
d7_recently_activated |
Browser metrics Passed 4 tests
An overview of browser requirements for D7SMS for Woocommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.83 ▲0.28 | 9.12 ▲0.31 | 46.93 ▼2.72 |
Dashboard /wp-admin | 2,967 ▲30 | 5.88 ▼0.30 | 141.72 ▼11.49 | 116.84 ▼6.06 |
Posts /wp-admin/edit.php | 2,736 ▼3 | 2.69 ▼0.00 | 72.22 ▼1.05 | 97.57 ▲1.87 |
Add New Post /wp-admin/post-new.php | 1,500 ▼183 | 18.75 ▲0.04 | 401.77 ▲8.87 | 115.43 ▼6.46 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 5.07 ▲0.03 | 144.18 ▼16.77 | 125.33 ▼0.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options were found after uninstall: 1 option
- d7_recently_activated
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
The following issues need your attention
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/d7sms/plugin-fw/lib/d7-cpt-unlimited.php
- 10× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: name in wp-content/plugins/d7sms/plugin-fw/templates/fields/sidebars.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_parse_args() in wp-content/plugins/d7sms/plugin-fw/templates/panel/woocommerce/woocommerce-option-row.php:13
- > PHP Warning
extract() expects parameter 1 to be array, null given in wp-content/plugins/d7sms/plugin-fw/templates/fields/icons.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/d7sms/plugin-options/providers.php:4
- > PHP Notice
Undefined variable: id in wp-content/plugins/d7sms/plugin-fw/templates/fields/sidebars.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_thickbox() in wp-content/plugins/d7sms/plugin-fw/templates/panel/woocommerce/woocommerce-panel.php:9
- > PHP Warning
extract() expects parameter 1 to be array, null given in wp-content/plugins/d7sms/plugin-fw/templates/fields/sidebars.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function checked() in wp-content/plugins/d7sms/plugin-fw/templates/fields/sidebars.php:17
- > PHP Warning
extract() expects parameter 1 to be array, null given in wp-content/plugins/d7sms/plugin-fw/templates/metaboxes/types/icon-list.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/d7sms/plugin-fw/templates/panel/woocommerce/woocommerce-form.php:9
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% 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
Attributes that require attention:
- Screenshots: Add a description for screenshot #6 in d7sms/assets to your readme.txt
d7sms/run.php 77% from 13 tests
The principal PHP file in "D7SMS for Woocommerce" v. 1.0.0 is loaded by WordPress automatically on each request
The following require your attention:
- Domain Path: The domain path folder was not found ("/languages")
- Main file name: Name the main plugin file the same as the plugin slug ("d7sms.php" instead of "run.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 359 characters long)
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
There were no executable files found in this plugin18,244 lines of code in 96 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 77 | 2,282 | 1,080 | 8,865 |
JavaScript | 10 | 1,088 | 556 | 7,309 |
CSS | 8 | 400 | 79 | 2,007 |
Markdown | 1 | 12 | 0 | 63 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.58 |
Average class complexity | 31.65 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 202.00 |
Average method complexity | 3.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 1 | 4.35% |
▷ Concrete classes | 22 | 95.65% |
▷ Final classes | 0 | 0.00% |
Methods | 250 | |
▷ Static methods | 31 | 12.40% |
▷ Public methods | 222 | 88.80% |
▷ Protected methods | 7 | 2.80% |
▷ Private methods | 21 | 8.40% |
Functions | 88 | |
▷ Named functions | 87 | 98.86% |
▷ Anonymous functions | 1 | 1.14% |
Constants | 14 | |
▷ Global constants | 14 | 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
17 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/select2.png | 0.60KB | 0.99KB | 0.00% |
plugin-fw/assets/images/licence-error.png | 1.61KB | 0.94KB | ▼ 41.62% |
plugin-fw/assets/images/x.png | 0.70KB | 0.71KB | 0.00% |
plugin-fw/assets/images/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |
plugin-fw/assets/images/double-sidebar.png | 0.95KB | 0.12KB | ▼ 87.73% |