Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼4.15ms] Passed 4 tests
Analyzing server-side resources used by TOUCAN SMS
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 41.78 ▲1.05 |
Dashboard /wp-admin | 3.46 ▲0.15 | 55.61 ▼1.66 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 48.39 ▼2.66 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 85.02 ▼13.32 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 38.85 ▲2.91 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for TOUCAN SMS
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.34 ▼0.18 | 1.85 ▲0.29 | 44.22 ▲3.74 |
Dashboard /wp-admin | 2,198 ▲18 | 5.63 ▼0.04 | 89.33 ▼8.67 | 39.41 ▼8.07 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.95 ▼0.06 | 35.17 ▼5.09 | 34.02 ▼1.94 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.28 ▼0.01 | 695.00 ▼43.88 | 51.85 ▼12.37 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.17 ▼0.07 | 96.72 ▼19.65 | 42.05 ▼6.27 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/leductoan-toucan-sms/toucan-sms.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 86% 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: Please a description for screenshot #3 in leductoan-toucan-sms/assets to your readme.txt
leductoan-toucan-sms/toucan-sms.php 77% from 13 tests
The main PHP file in "TOUCAN SMS" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 221 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("leductoan-toucan-sms.php" instead of "toucan-sms.php")
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin869 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 69 | 26 | 755 |
CSS | 1 | 0 | 0 | 81 |
JavaScript | 1 | 0 | 0 | 33 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.67 |
Average class complexity | 94.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 7.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 28 | |
▷ Static methods | 1 | 3.57% |
▷ Public methods | 25 | 89.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 10.71% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
3 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 55.84KB | 18.28KB | ▼ 67.26% |
screenshot-1.png | 45.41KB | 26.23KB | ▼ 42.23% |
screenshot-3.png | 8.07KB | 3.84KB | ▼ 52.41% |