Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin did not install without errors
- > Warning in wp-content/plugins/at-sms/src/vendor/composer/autoload_real.php+25
require(wp-content/plugins/at-sms/src/vendor/composer/platform_check.php): failed to open stream: No such file or directory
Server metrics [RAM: ▼0.01MB] [CPU: ▼4.27ms] Passed 4 tests
Server-side resources used by Africa's Talking SMS Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 40.08 ▲3.35 |
Dashboard /wp-admin | 3.31 ▼0.04 | 47.43 ▼10.86 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 45.61 ▲1.10 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 78.19 ▼9.36 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.46 ▲2.03 |
Server storage [IO: ▲0.87MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 160 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Africa's Talking SMS Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.35 ▲0.46 | 2.78 ▲1.22 | 48.72 ▲8.10 |
Dashboard /wp-admin | 2,189 ▲14 | 5.55 ▼0.02 | 100.73 ▲1.34 | 44.14 ▲4.81 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.03 ▲0.03 | 38.61 ▲3.79 | 36.93 ▼4.28 |
Add New Post /wp-admin/post-new.php | 1,536 ▲8 | 23.16 ▼0.02 | 649.40 ▲36.80 | 52.47 ▼1.14 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.20 ▲0.05 | 103.77 ▲10.10 | 50.51 ▲9.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/at-sms/src/vendor/africastalking/africastalking/example/views/index.php
- 61× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/at-sms/src/vendor/guzzlehttp/guzzle/src/Exception/BadResponseException.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/at-sms/src/vendor/guzzlehttp/psr7/src/InflateStream.php:20
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/at-sms/src/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/at-sms/src/vendor/psr/http-message/src/ServerRequestInterface.php:43
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/at-sms/src/vendor/guzzlehttp/psr7/src/Request.php:13
- > PHP Warning
require(vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/at-sms/src/vendor/africastalking/africastalking/example/index.php on line 2
- > PHP Warning
require(wp-content/plugins/at-sms/src/vendor/composer/platform_check.php): failed to open stream: No such file or directory in wp-content/plugins/at-sms/src/vendor/composer/autoload_real.php on line 25
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/at-sms/src/vendor/guzzlehttp/psr7/src/CachingStream.php:13
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/at-sms/src/vendor/psr/http-message/src/ResponseInterface.php:20
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/at-sms/src/vendor/guzzlehttp/guzzle/src/Exception/SeekException.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: sms, africas talking, at, bulk sms api
at-sms/AT-SMS-Plugin.php 85% from 13 tests
The primary PHP file in "Africa's Talking SMS Plugin" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("at-sms.php" instead of "AT-SMS-Plugin.php")
- Text Domain: Please use dashes and lowercase characters for text domains
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin15,315 lines of code in 141 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 111 | 2,232 | 5,368 | 10,243 |
Markdown | 12 | 1,249 | 0 | 3,671 |
JSON | 9 | 0 | 0 | 978 |
JavaScript | 4 | 58 | 1 | 268 |
CSS | 2 | 16 | 19 | 120 |
XML | 1 | 0 | 0 | 16 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 14.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 2.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 15 | |
Traits | 2 | |
Classes | 79 | |
▷ Abstract classes | 1 | 1.27% |
▷ Concrete classes | 78 | 98.73% |
▷ Final classes | 9 | 11.54% |
Methods | 762 | |
▷ Static methods | 72 | 9.45% |
▷ Public methods | 608 | 79.79% |
▷ Protected methods | 34 | 4.46% |
▷ Private methods | 120 | 15.75% |
Functions | 149 | |
▷ Named functions | 75 | 50.34% |
▷ Anonymous functions | 74 | 49.66% |
Constants | 61 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 61 | 100.00% |
▷ Public constants | 61 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/2delete.png | 0.52KB | 0.50KB | ▼ 4.50% |
images/logo.png | 0.50KB | 0.54KB | 0.00% |
images/2logo.png | 0.68KB | 0.75KB | 0.00% |
images/delete.png | 0.45KB | 0.36KB | ▼ 21.34% |