10% hide-wp

Code Review | Hide WP

WordPress plugin Hide WP scored10%from 54 tests.

About plugin

  • Plugin page: hide-wp
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.4.2
  • WordPress version: 6.3.1
  • First release: Apr 30, 2015
  • Latest release: Mar 12, 2016
  • Number of updates: 11
  • Update frequency: every 28.7 days
  • Top authors: kursorA (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

100+ active /11,327 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.81 ▲0.3540.72 ▼6.84
Dashboard /wp-admin3.65 ▲0.3548.54 ▼3.35
Posts /wp-admin/edit.php3.76 ▲0.4148.26 ▼12.25
Add New Post /wp-admin/post-new.php6.23 ▲0.3592.14 ▼14.01
Media Library /wp-admin/upload.php3.57 ▲0.3539.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲10314.43 ▲0.031.61 ▼0.4910.56 ▼34.50
Dashboard /wp-admin2,275 ▲875.79 ▲0.9290.16 ▼32.6237.38 ▼13.43
Posts /wp-admin/edit.php2,153 ▲602.00 ▼0.0433.37 ▼10.8833.40 ▼6.10
Add New Post /wp-admin/post-new.php1,617 ▲9423.48 ▲0.08644.05 ▼173.6244.61 ▼20.79
Media Library /wp-admin/upload.php1,455 ▲704.22 ▼0.0990.44 ▼11.2845.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 === )
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP288381,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 code0.65
Average class complexity182.00
▷ Minimum class complexity157.00
▷ Maximum class complexity207.00
Average method complexity8.35
▷ Minimum method complexity1.00
▷ Maximum method complexity83.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods50
▷ Static methods24.00%
▷ Public methods4896.00%
▷ Protected methods24.00%
▷ Private methods00.00%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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