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.35MB] [CPU: ▲5.04ms] Passed 4 tests
An overview of server-side resources used by Special Text Boxes
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.98 ▲0.51 | 40.95 ▲1.60 |
Dashboard /wp-admin | 3.64 ▲0.33 | 47.80 ▼1.55 |
Posts /wp-admin/edit.php | 3.69 ▲0.33 | 53.80 ▲9.99 |
Add New Post /wp-admin/post-new.php | 6.37 ▲0.48 | 104.84 ▲12.09 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 39.73 ▲10.13 |
STB /wp-admin/options-general.php?page=stb-settings | 3.50 | 38.25 |
Server storage [IO: ▲55.15MB] [DB: ▲0.08MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please fix the following
- The filesystem usage should be lower than 25MB (currently using 55.15MB)
Filesystem: 38 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_stb_stylez |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_special_text |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
SpecialTextBoxesAdminSettings |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Special Text Boxes
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲42 | 14.38 ▼0.39 | 1.71 ▼0.07 | 38.32 ▼6.22 |
Dashboard /wp-admin | 2,196 ▲22 | 5.60 ▼0.03 | 91.64 ▼8.09 | 39.08 ▼8.39 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.94 ▼0.07 | 40.73 ▲4.63 | 38.32 ▼0.30 |
Add New Post /wp-admin/post-new.php | 6,212 ▲4,686 | 19.05 ▼4.19 | 953.37 ▲310.27 | 38.98 ▼10.42 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.19 ▲0.01 | 103.87 ▲5.82 | 44.77 ▲4.22 |
STB /wp-admin/options-general.php?page=stb-settings | 1,295 | 38.25 | 1,015.28 | 136.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_stb_stylez
- This plugin does not fully uninstall, leaving 8 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_special_text
- widget_recent-posts
- SpecialTextBoxesAdminSettings
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #2, #3, #4, #5, #6, #7, #8 in wp-special-textboxes/assets to your readme.txt
wp-special-textboxes/wp-special-textboxes.php 92% from 13 tests
"Special Text Boxes" version 6.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 229 characters long)
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
There were no executable files found in this plugin3,952 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 278 | 59 | 3,056 |
PO File | 1 | 195 | 202 | 467 |
JavaScript | 4 | 48 | 10 | 356 |
JSON | 1 | 0 | 0 | 68 |
CSS | 5 | 0 | 0 | 5 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 13.90 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 99 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 80 | 80.81% |
▷ Protected methods | 2 | 2.02% |
▷ Private methods | 17 | 17.17% |
Functions | 9 | |
▷ Named functions | 2 | 22.22% |
▷ Anonymous functions | 7 | 77.78% |
Constants | 15 | |
▷ Global constants | 13 | 86.67% |
▷ Class constants | 2 | 13.33% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.21MB with 0.19MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/themes/stb-metro2-theme.png | 174.16KB | 42.08KB | ▼ 75.84% |
js/img/wstb.png | 19.08KB | 0.13KB | ▼ 99.33% |
images/wstb.png | 19.08KB | 0.13KB | ▼ 99.33% |