Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.84MB] [CPU: ▼56.55ms] Passed 4 tests
Analyzing server-side resources used by Text Mutator
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.32 | 4.73 ▼35.49 |
Dashboard /wp-admin | 2.16 ▼1.14 | 5.99 ▼45.88 |
Posts /wp-admin/edit.php | 2.17 ▼1.19 | 5.19 ▼42.00 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.72 | 5.93 ▼102.83 |
Media Library /wp-admin/upload.php | 2.16 ▼1.06 | 5.32 ▼31.41 |
Text Mutator Settings /wp-admin/options-general.php?page=text-mutator/text-mutator.php | 2.17 | 6.74 |
Server storage [IO: ▲0.84MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Text Mutator
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.71 ▼0.67 | 4.61 ▲2.83 | 42.59 ▼2.56 |
Dashboard /wp-admin | 2,229 ▲37 | 5.04 ▲0.10 | 102.16 ▼18.18 | 39.80 ▼7.92 |
Posts /wp-admin/edit.php | 2,114 ▲25 | 2.29 ▲0.31 | 35.44 ▼2.68 | 30.21 ▼5.61 |
Add New Post /wp-admin/post-new.php | 1,534 ▲15 | 23.52 ▲0.17 | 590.44 ▼58.52 | 31.37 ▼36.69 |
Media Library /wp-admin/upload.php | 1,411 ▲20 | 4.43 ▲0.23 | 102.15 ▼0.86 | 42.40 ▼3.54 |
Text Mutator Settings /wp-admin/options-general.php?page=text-mutator/text-mutator.php | 1,546 | 3.07 | 68.36 | 33.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wp-color-picker handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=text-mutator/text-mutator.php
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the wp-color-picker handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=text-mutator/text-mutator.php
- > Notice in wp-content/plugins/text-mutator/text-mutator.php+456
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/text-mutator/text-mutator.php:64
- > 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)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: strike-through, flourish, highlight, text style, redact...
text-mutator/text-mutator.php Passed 13 tests
"Text Mutator" version 0.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
47 characters long description:
Highlight, redact, style and modify text blocks
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin2,109 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 2 | 2 | 0 | 1,802 |
PHP | 2 | 166 | 102 | 302 |
JavaScript | 1 | 2 | 2 | 5 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 1 | 4.55% |
▷ Public methods | 21 | 95.45% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.55% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin