Benchmarks
Plugin footprint 22% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/wp-hide-my-site/index.php+12
Undefined index: upload_image
Server metrics [RAM: ▼1.92MB] [CPU: ▼54.56ms] Passed 4 tests
Analyzing server-side resources used by Hide my site
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.40 | 4.73 ▼36.23 |
Dashboard /wp-admin | 2.09 ▼1.22 | 6.93 ▼52.41 |
Posts /wp-admin/edit.php | 2.09 ▼1.27 | 6.89 ▼40.72 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.80 | 6.42 ▼88.89 |
Media Library /wp-admin/upload.php | 2.09 ▼1.15 | 5.28 ▼29.07 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
Please fix the following
- There were 2 files (0.80KB) illegally modified outside of "wp-content/plugins/wp-hide-my-site/" and "wp-content/uploads/"
- (new file) wp-admin/welcome.php
- (new file) welcome.php
Filesystem: 7 new files
Database: 1 new table, 6 new options
New tables |
---|
hiddenmysite |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Hide my site
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,869 ▲98 | 13.31 ▼0.98 | 1.73 ▼0.21 | 39.29 ▼2.61 |
Dashboard /wp-admin | 2,235 ▲56 | 5.83 ▲0.77 | 101.82 ▼3.74 | 50.22 ▲7.31 |
Posts /wp-admin/edit.php | 2,144 ▲52 | 2.26 ▲0.26 | 39.12 ▲2.71 | 42.37 ▲9.56 |
Add New Post /wp-admin/post-new.php | 1,397 ▲5 | 20.49 ▲2.08 | 560.18 ▼59.30 | 40.45 ▼5.95 |
Media Library /wp-admin/upload.php | 1,430 ▲42 | 4.25 ▲0.07 | 104.05 ▼21.08 | 49.04 ▲0.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/wp-hide-my-site/index.php+12
Undefined index: upload_image
- The plugin did not uninstall successfully, leaving 1 table in the database
- hiddenmysite
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
Almost there! Just fix the following items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined index: upload_image in wp-content/plugins/wp-hide-my-site/configuration.php on line 3
- > PHP Notice
Undefined index: color in wp-content/plugins/wp-hide-my-site/configuration.php on line 4
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/wp-hide-my-site/configuration.php:40
- > PHP Notice
Undefined index: acao in wp-content/plugins/wp-hide-my-site/configuration.php on line 5
- > PHP Notice
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 90% 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
These attributes need your attention:
- Screenshots: Please add an image for screenshot #1 (Configuration screen Hide my site)
wp-hide-my-site/index.php 85% from 13 tests
The main PHP script in "Hide my site" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 202 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("wp-hide-my-site.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin304 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 30 | 21 | 187 |
CSS | 1 | 9 | 1 | 105 |
JavaScript | 1 | 2 | 0 | 12 |
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.16 |
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 | 6 | |
▷ Named functions | 6 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/logo-hidden.png | 12.67KB | 6.16KB | ▼ 51.41% |
screenshot-1.png | 32.17KB | 27.49KB | ▼ 14.55% |