Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.01MB] [CPU: ▼15.55ms] Passed 4 tests
An overview of server-side resources used by Pay Post By SMS
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.05 ▼4.61 |
Dashboard /wp-admin | 3.31 ▼0.04 | 46.01 ▼17.06 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.50 ▼10.97 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.90 ▼29.55 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.14 ▼0.83 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Pay Post By SMS
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.20 ▼0.15 | 2.02 ▲0.19 | 42.71 ▼3.74 |
Dashboard /wp-admin | 2,192 ▲15 | 5.52 ▼0.08 | 88.84 ▲3.00 | 35.95 ▼7.38 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▼0.01 | 39.61 ▼1.12 | 35.72 ▼2.86 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.79 ▲0.76 | 669.44 ▲36.99 | 51.59 ▼0.91 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.13 ▼0.05 | 110.08 ▲11.28 | 46.52 ▲1.10 |
Uninstaller [IO: ▲0.22MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the followingThis plugin did not uninstall successfully, leaving 6 options in the database
- Uninstaller has failed for this plugin, leaving 25 files (0.22MB) in the plugin directory
- (new file) admin/security_settings.php
- (new file) assets/img/clickatell.png
- (new file) admin/sms_settings.php
- (new file) assets/img/dashboard_icon.png
- (new file) LICENSE.txt
- (new file) admin/instructions.php
- (new file) assets/css/pay_post_by_sms.css
- (new file) api/rest.php
- (new file) assets/img/centili.png
- (new file) admin/api_url_settings.php
- ...
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
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)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: premium sms, sms, payment, charge per post, micro payments...
pay-post-by-sms/pay-post-by-sms.php Passed 13 tests
The main file in "Pay Post By SMS" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
15 characters long description:
Pay Post By SMS
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
Good job! No executable or dangerous file extensions detected821 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 484 | 158 | 624 |
PO File | 1 | 71 | 83 | 187 |
JavaScript | 1 | 8 | 0 | 10 |
PHP code Passed 2 tests
Analyzing 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.23 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 4 | 9.76% |
▷ Public methods | 35 | 85.37% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 14.63% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
7 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/nth-mobile.png | 6.50KB | 3.30KB | ▼ 49.20% |
assets/img/clickatell.png | 10.13KB | 4.44KB | ▼ 56.15% |
assets/img/fortumo.png | 7.46KB | 3.42KB | ▼ 54.18% |
assets/img/ticket.png | 18.17KB | 4.24KB | ▼ 76.69% |
assets/img/dashboard_icon.png | 2.31KB | 1.47KB | ▼ 36.38% |