Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼4.95ms] Passed 4 tests
A check of server-side resources used by Hide/Remove Text
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 38.10 ▼2.76 |
Dashboard /wp-admin | 3.33 ▲0.03 | 47.83 ▼2.97 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 47.46 ▲0.86 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 88.73 ▼13.27 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.56 ▼0.81 |
Hide/Remove Text /wp-admin/options-general.php?page=hide_text | 3.22 | 31.78 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 12 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
hide_text_url |
widget_theysaidso_widget |
widget_recent-comments |
hide_text_admin_hidden |
hide_text_regex |
hide_text_phone_number |
hide_text_replace_text |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Hide/Remove Text
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.19 ▼1.62 | 1.83 ▼0.03 | 41.63 ▼4.67 |
Dashboard /wp-admin | 2,210 ▲25 | 4.87 ▼0.04 | 108.31 ▲3.90 | 38.83 ▼1.97 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▲0.03 | 36.21 ▼0.03 | 31.39 ▼0.64 |
Add New Post /wp-admin/post-new.php | 1,536 ▲5 | 23.07 ▲4.98 | 600.46 ▼47.13 | 60.88 ▼18.54 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.21 ▼0.02 | 100.69 ▼5.17 | 44.47 ▼0.31 |
Hide/Remove Text /wp-admin/options-general.php?page=hide_text | 910 | 2.03 | 24.28 | 29.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 12 options in the database
- hide_text_phone_number
- hide_text_admin_hidden
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- hide_text_email
- hide_text_url
- theysaidso_admin_options
- hide_text_replace_text
- widget_recent-comments
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 2× 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/hideremove-text/hide-text.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hideremove-text/promo-hunt.php:22
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 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
3 plugin tags: hide, remove, regex
hideremove-text/hide-text.php 92% from 13 tests
The principal PHP file in "Hide/Remove Text" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("hideremove-text.php" instead of "hide-text.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin519 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 29 | 13 | 252 |
PHP | 2 | 27 | 18 | 214 |
CSS | 1 | 6 | 3 | 53 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.36MB with 0.15MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/egg2.png | 92.70KB | 34.49KB | ▼ 62.79% |
images/star1.png | 16.11KB | 15.85KB | ▼ 1.58% |
images/gift1.png | 259.66KB | 111.90KB | ▼ 56.91% |