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.01MB] [CPU: ▼4.78ms] Passed 4 tests
Server-side resources used by Ecommerce SMS Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.30 ▼9.64 |
Dashboard /wp-admin | 3.31 ▲0.01 | 51.92 ▲7.58 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 51.70 ▼0.03 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 97.12 ▼8.90 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.25 ▼0.56 |
Server storage [IO: ▲0.53MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 60 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Ecommerce SMS Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲79 | 14.41 ▼0.11 | 1.77 ▲0.03 | 39.19 ▲1.74 |
Dashboard /wp-admin | 2,209 ▲24 | 4.85 ▼0.96 | 99.77 ▼2.13 | 38.08 ▼6.74 |
Posts /wp-admin/edit.php | 2,086 ▼6 | 2.03 ▲0.03 | 39.33 ▼2.70 | 33.23 ▼3.71 |
Add New Post /wp-admin/post-new.php | 1,542 ▲9 | 18.43 ▼4.86 | 591.70 ▼84.63 | 55.83 ▲2.90 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.21 ▲0.11 | 93.87 ▼12.35 | 40.86 ▼6.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% 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 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/octopush-sms/public/partials/octopush-sms-public-display.php
- 22× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Warning
Use of undefined constant WP_DEBUG - assumed 'WP_DEBUG' (this will throw an Error in a future version of PHP) in wp-content/plugins/octopush-sms/includes/class-octopush-sms.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/octopush-sms/admin/API_SMS_PHP_Octopush/config.inc.php:119
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/octopush-sms/admin/API_SMS_PHP_Octopush/config.inc.php:119
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/octopush-sms/admin/class-octopush-sms-recipient-list.php on line 26
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/octopush-sms/admin/class-octopush-sms-recipient-list.php on line 26
- > PHP Warning
require_once(ABSPATHwp-admin/includes/upgrade.php): failed to open stream: No such file or directory in wp-content/plugins/octopush-sms/includes/class-octopush-sms-activator.php on line 13
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/octopush-sms/admin/class-octopush-sms-campaign-list.php on line 26
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/octopush-sms/admin/API_SMS_PHP_Octopush/config.inc.php:119
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/octopush-sms/includes/class-octopush-sms-activator.php on line 13
- > begin class-octopush-sms
- > PHP Warning
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
4 plugin tags: woocommerce, sms, woocomemerce sms, octopush
octopush-sms/octopush-sms.php 92% from 13 tests
The main file in "Ecommerce SMS Plugin" v. 1.7.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 236 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin7,360 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 38 | 908 | 1,827 | 5,117 |
PO File | 2 | 567 | 683 | 1,461 |
JavaScript | 2 | 56 | 95 | 486 |
CSS | 2 | 2 | 15 | 179 |
LESS | 1 | 30 | 9 | 117 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 30.87 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 152.00 |
Average method complexity | 3.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 58.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 | 243 | |
▷ Static methods | 50 | 20.58% |
▷ Public methods | 214 | 88.07% |
▷ Protected methods | 7 | 2.88% |
▷ Private methods | 22 | 9.05% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 85 | |
▷ Global constants | 83 | 97.65% |
▷ Class constants | 2 | 2.35% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/information.png | 0.76KB | 0.83KB | 0.00% |
public/img/octopush.png | 4.95KB | 1.66KB | ▼ 66.37% |
admin/img/octopush.png | 4.95KB | 1.66KB | ▼ 66.37% |
admin/img/no.png | 0.74KB | 0.74KB | 0.00% |
admin/img/yes.png | 0.53KB | 0.58KB | 0.00% |