Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼3.67ms] Passed 4 tests
A check of server-side resources used by Hide Anything - Hide Any Element on Any Page Visually
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 41.64 ▼3.39 |
Dashboard /wp-admin | 3.38 ▲0.08 | 51.04 ▲1.10 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 49.84 ▲0.23 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 87.15 ▼11.93 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 36.39 ▲0.43 |
Hide Anything /wp-admin/options-general.php?page=hide-anything-settings | 3.28 | 33.25 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
hide_anything_version |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Hide Anything - Hide Any Element on Any Page Visually: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,071 ▲325 | 19.87 ▲5.44 | 32.16 ▲30.32 | 39.65 ▼6.18 |
Dashboard /wp-admin | 2,255 ▲81 | 6.80 ▲0.96 | 114.53 ▲11.50 | 37.39 ▼7.45 |
Posts /wp-admin/edit.php | 2,171 ▲79 | 6.41 ▲4.37 | 56.93 ▲15.30 | 32.19 ▼5.47 |
Add New Post /wp-admin/post-new.php | 1,525 ▼8 | 23.43 ▲0.21 | 514.65 ▼63.41 | 35.09 ▼23.00 |
Media Library /wp-admin/upload.php | 1,525 ▲140 | 8.67 ▲4.50 | 114.69 ▲16.74 | 41.42 ▼1.07 |
Hide Anything /wp-admin/options-general.php?page=hide-anything-settings | 976 | 6.43 | 58.38 | 35.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- hide_anything_version
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
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
4 plugin tags: remove, hide, element, design
hide-anything/plugin.php 92% from 13 tests
The main PHP file in "Hide Anything - Hide Any Element on Any Page Visually" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("hide-anything.php" instead of "plugin.php")
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
Everything looks great! No dangerous files found in this plugin433 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 183 | 90 | 429 |
CSS | 2 | 0 | 0 | 2 |
JavaScript | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 6.12 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 1 | 12.50% |
Methods | 36 | |
▷ Static methods | 9 | 25.00% |
▷ Public methods | 34 | 94.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 5.56% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
7 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/products/upload-fields-for-wpforms.png | 10.08KB | 4.49KB | ▼ 55.49% |
assets/images/products/dracula-dark-mode.png | 12.43KB | 7.74KB | ▼ 37.70% |
assets/images/products/reader-mode.png | 2.79KB | 1.39KB | ▼ 50.14% |
assets/images/products/integrate-google-drive.png | 8.30KB | 3.59KB | ▼ 56.74% |
(invalid) assets/images/products/podcast-box.png | 15.05KB | 0.00KB | ▼ 100.00% |