Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.55MB] [CPU: ▼5.92ms] Passed 4 tests
A check of server-side resources used by Newsletter SMS - SMSAPI
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.21 ▲0.74 | 45.72 ▲4.15 |
Dashboard /wp-admin | 3.91 ▲0.56 | 55.78 ▼12.90 |
Posts /wp-admin/edit.php | 3.96 ▲0.60 | 52.71 ▲1.44 |
Add New Post /wp-admin/post-new.php | 6.43 ▲0.53 | 92.06 ▼10.10 |
Media Library /wp-admin/upload.php | 3.77 ▲0.53 | 37.38 ▼2.12 |
Subscribers /wp-admin/admin.php?page=smsapi-subscribers | 3.77 | 40.98 |
Send SMS /wp-admin/admin.php?page=smsapi-send-sms | 3.78 | 38.76 |
Settings /wp-admin/admin.php?page=smsapi-settings | 3.73 | 34.12 |
Server storage [IO: ▲0.96MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 519 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_smsapi_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Newsletter SMS - SMSAPI
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,902 ▲152 | 13.78 ▼0.44 | 8.62 ▲6.82 | 43.11 ▼5.44 |
Dashboard /wp-admin | 2,212 ▲32 | 5.56 ▼0.10 | 93.30 ▼2.19 | 83.52 ▲41.89 |
Posts /wp-admin/edit.php | 2,135 ▲32 | 2.01 ▼0.06 | 34.85 ▼6.08 | 33.60 ▼2.36 |
Add New Post /wp-admin/post-new.php | 1,706 ▲180 | 22.10 ▼0.85 | 707.39 ▲8.60 | 57.97 ▼11.07 |
Media Library /wp-admin/upload.php | 1,429 ▲29 | 4.14 ▼0.03 | 107.95 ▼3.73 | 61.90 ▲16.21 |
Subscribers /wp-admin/admin.php?page=smsapi-subscribers | 735 | 1.51 | 7.59 | 16.92 |
Send SMS /wp-admin/admin.php?page=smsapi-send-sms | 832 | 2.19 | 27.39 | 25.57 |
Settings /wp-admin/admin.php?page=smsapi-settings | 846 | 2.00 | 24.69 | 25.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- widget_smsapi_widget
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
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 | 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
Almost there! Just fix the following items
- 265× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Smsapi\\Client\\Version3\\Feature\\Mms\\MmsFeature' not found in wp-content/plugins/newsletter-sms-smsapi/vendor/smsapi/php-client/src/Feature/Mms/MmsHttpFeature.php:15
- > PHP Fatal error
Uncaught Error: Class 'SMSApi\\Api\\ActionFactory' not found in wp-content/plugins/newsletter-sms-smsapi/vendor/smsapi/php-client/smsapi/Api/MmsFactory.php:9
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/upgrade.php' (include_path='.:/usr/share/php') in wp-content/plugins/newsletter-sms-smsapi/install.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'SMSApi\\Api\\Action\\Contacts\\ContactsAction' not found in wp-content/plugins/newsletter-sms-smsapi/vendor/smsapi/php-client/smsapi/Api/Action/Contacts/ContactEdit.php:13
- > PHP Warning
require_once(SMSAPI_PLUGIN_PATH/classes/SmsapiPsrClient.php): failed to open stream: No such file or directory in wp-content/plugins/newsletter-sms-smsapi/classes/SmsapiClient.php on line 20
- > PHP Warning
require_once(wp-content/plugins/newsletter-sms-smsapi/vendor/smsapi/php-client/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/newsletter-sms-smsapi/vendor/smsapi/php-client/tests/bootstrap.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'SMSApi\\Api\\Action\\AbstractAction' not found in wp-content/plugins/newsletter-sms-smsapi/vendor/smsapi/php-client/smsapi/Api/Action/Mms/Get.php:15
- > PHP Fatal error
Uncaught Error: Class 'SMSApi\\Exception\\SmsapiException' not found in wp-content/plugins/newsletter-sms-smsapi/vendor/smsapi/php-client/smsapi/Exception/ClientException.php:5
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/newsletter-sms-smsapi/vendor/smsapi/php-client/tests/Unit/Feature/Sms/Bag/BagWithSingleParamsTestCase.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Smsapi\\Client\\Version3\\Feature\\Subusers\\SubusersFeature' not found in wp-content/plugins/newsletter-sms-smsapi/vendor/smsapi/php-client/src/Feature/Subusers/SubusersHttpFeature.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: Screenshot #6 (In 'Subscribers' subtab you can view, edit or remove current subscribers.) image required
newsletter-sms-smsapi/smsapi.php 85% from 13 tests
"Newsletter SMS - SMSAPI" version 2.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("newsletter-sms-smsapi.php" instead of "smsapi.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 225 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin20,237 lines of code in 494 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 454 | 5,328 | 7,246 | 17,646 |
Markdown | 13 | 614 | 0 | 1,134 |
JSON | 13 | 0 | 0 | 685 |
PO File | 2 | 192 | 237 | 456 |
CSS | 2 | 21 | 0 | 116 |
XML | 2 | 6 | 0 | 87 |
YAML | 5 | 9 | 0 | 75 |
Dockerfile | 1 | 4 | 0 | 13 |
make | 1 | 8 | 0 | 13 |
JavaScript | 1 | 2 | 16 | 12 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 3.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 1.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 110 | |
Interfaces | 43 | |
Traits | 8 | |
Classes | 390 | |
▷ Abstract classes | 15 | 3.85% |
▷ Concrete classes | 375 | 96.15% |
▷ Final classes | 45 | 12.00% |
Methods | 1,810 | |
▷ Static methods | 118 | 6.52% |
▷ Public methods | 1,588 | 87.73% |
▷ Protected methods | 108 | 5.97% |
▷ Private methods | 114 | 6.30% |
Functions | 102 | |
▷ Named functions | 86 | 84.31% |
▷ Anonymous functions | 16 | 15.69% |
Constants | 106 | |
▷ Global constants | 10 | 9.43% |
▷ Class constants | 96 | 90.57% |
▷ Public constants | 96 | 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
6 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/apl-logo-60x60.png | 2.68KB | 2.38KB | ▼ 11.20% |
assets/banner-1544x500.png | 27.12KB | 9.91KB | ▼ 63.45% |
assets/icon-128x128.png | 2.56KB | 1.56KB | ▼ 39.07% |
assets/icon-256x256.png | 4.78KB | 2.34KB | ▼ 50.98% |
assets/images/apl-logo-18x18.png | 0.71KB | 0.91KB | 0.00% |