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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.19MB] [CPU: ▼2.82ms] Passed 4 tests
Analyzing server-side resources used by Text Styler
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.17 | 38.28 ▼5.40 |
Dashboard /wp-admin | 3.57 ▲0.22 | 48.31 ▼6.38 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 49.61 ▲1.12 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 89.20 ▼0.62 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 37.37 ▲2.13 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Text Styler
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,447 ▲701 | 15.14 ▲0.77 | 1.68 ▼0.48 | 39.82 ▼4.89 |
Dashboard /wp-admin | 2,847 ▲662 | 6.78 ▲0.91 | 146.12 ▲44.43 | 31.14 ▼12.84 |
Posts /wp-admin/edit.php | 2,756 ▲667 | 3.66 ▲1.66 | 56.63 ▲20.45 | 28.96 ▼2.63 |
Add New Post /wp-admin/post-new.php | 2,017 ▲484 | 23.74 ▲0.71 | 628.47 ▼63.08 | 39.40 ▼14.58 |
Media Library /wp-admin/upload.php | 1,892 ▲504 | 4.48 ▲0.32 | 88.10 ▼18.10 | 45.00 ▼1.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 75% 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 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'TXST_MCEForm' not found in wp-content/plugins/text-styler/TXST/MCEForm/StyleOptions.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/text-styler/TXST/MCEForm.php:54
- > PHP Fatal error
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, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: tinymce add-on, advance tinymce, wp text styler, text styler, tinymce button...
text-styler/text-styler.php 92% from 13 tests
The entry point to "Text Styler" version 1.1.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (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 plugin1,484 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 170 | 61 | 793 |
CSS | 3 | 9 | 14 | 430 |
JavaScript | 3 | 76 | 16 | 261 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 38.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 3.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 1 | 33.33% |
▷ Concrete classes | 2 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 5 | 10.87% |
▷ Public methods | 34 | 73.91% |
▷ Protected methods | 12 | 26.09% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 6 | 100.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/ts-mce-button.png | 0.59KB | 0.52KB | ▼ 13.01% |