Benchmarks
Plugin footprint 22% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- The plugin cannot be installed
- > Notice in wp-content/plugins/hide-wp/hide-wp-admin.php+218
Undefined variable: slug_path
Server metrics [RAM: ▲0.35MB] [CPU: ▼9.97ms] Passed 4 tests
A check of server-side resources used by Hide WP
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.35 | 40.72 ▼6.84 |
Dashboard /wp-admin | 3.65 ▲0.35 | 48.54 ▼3.35 |
Posts /wp-admin/edit.php | 3.76 ▲0.41 | 48.26 ▼12.25 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.35 | 92.14 ▼14.01 |
Media Library /wp-admin/upload.php | 3.57 ▲0.35 | 39.62 ▼6.78 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
These are issues you should consider
- There were 1 file (1.82KB) illegally modified outside of "wp-content/plugins/hide-wp/" and "wp-content/uploads/"
- (modified) .htaccess
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options |
---|
hide-wp |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Hide WP
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲103 | 14.43 ▲0.03 | 1.61 ▼0.49 | 10.56 ▼34.50 |
Dashboard /wp-admin | 2,275 ▲87 | 5.79 ▲0.92 | 90.16 ▼32.62 | 37.38 ▼13.43 |
Posts /wp-admin/edit.php | 2,153 ▲60 | 2.00 ▼0.04 | 33.37 ▼10.88 | 33.40 ▼6.10 |
Add New Post /wp-admin/post-new.php | 1,617 ▲94 | 23.48 ▲0.08 | 644.05 ▼173.62 | 44.61 ▼20.79 |
Media Library /wp-admin/upload.php | 1,455 ▲70 | 4.22 ▼0.09 | 90.44 ▼11.28 | 45.10 ▲1.62 |
Uninstaller [IO: ▲0.08MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Error in wp-includes/option.php+435
Uncaught ArgumentCountError: Too few arguments to function update_option(), 1 passed in wp-content/plugins/hide-wp/hide-wp.php on line 740 and at least 2 expected in wp-includes/option.php:435
Stack trace:
#0 wp-content/plugins/hide-wp/hide-wp.php(740): update_option()
#1 wp-includes/class-wp-hook.php(310): hide_wp_deinstall()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/includes/plugin.php(816): do_action() - Incomplete uninstall procedure, leaving 3 files (0.07MB) in the plugin directory
- (new file) readme.txt
- (new file) hide-wp.php
- (new file) hide-wp-admin.php
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- hide-wp
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== hide-wp ===
)
hide-wp/hide-wp.php Passed 13 tests
The main PHP script in "Hide WP" version 1.0.5 is automatically included on every request by WordPress
54 characters long description:
Hide Wordpress instalation and protect Wordpress files
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,634 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 88 | 38 | 1,634 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.65 |
Average class complexity | 182.00 |
▷ Minimum class complexity | 157.00 |
▷ Maximum class complexity | 207.00 |
Average method complexity | 8.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 83.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 2 | 4.00% |
▷ Public methods | 48 | 96.00% |
▷ Protected methods | 2 | 4.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
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
PNG images were not found in this plugin