10% wp-hide

Code Review | Wp-Hide

WordPress plugin Wp-Hide scored 10% from 54 tests.

About plugin

  • Plugin page: wp-hide
  • Plugin version: 0.0.2
  • PHP version: 7.4.16
  • WordPress version: 5.9.2
  • First release: Jul 29, 2015
  • Latest release: Sep 22, 2015
  • Number of updates: 13
  • Update frequency: every 4.3 days
  • Top authors: Weberge (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

40+ active / 5,320 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • This plugin did not install gracefully
    • > User deprecated in wp-includes/functions.php+5316
    automatic_feed_links is deprecated since version 3.0.0! Use add_theme_support( 'automatic-feed-links' ) instead.

Server metrics [RAM: ▼2.16MB] [CPU: ▼342.77ms] Passed 4 tests

An overview of server-side resources used by Wp-Hide
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.21 ▼1.304.02 ▼48.12
Dashboard /wp-admin2.23 ▼1.184.12 ▼29.87
Posts /wp-admin/edit.php2.23 ▼1.414.16 ▼32.19
Add New Post /wp-admin/post-new.php2.23 ▼4.774.38 ▼1,260.88
Media Library /wp-admin/upload.php2.23 ▼1.074.04 ▼27.83

Server storage [IO: ▲0.03MB] [DB: ▲0.11MB] 67% from 3 tests

A short overview of filesystem and database impact
Please try to fix the following items
  • Illegal file modification found: 1 file (80.59KB) outside of "wp-content/plugins/wp-hide/" and "wp-content/uploads/"
    • (new file) public/.htaccess
Filesystem: 4 new files
Database: no new tables, 1 new option
New WordPress options
wp_hide_html_encode

Browser metrics Passed 4 tests

Checking browser requirements for Wp-Hide
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,437 ▼31716.18 ▲0.415.19 ▼1.1654.65 ▲52.18
Dashboard /wp-admin2,892 ▲316.14 ▼0.06117.68 ▼18.56155.89 ▲0.52
Posts /wp-admin/edit.php2,688 ▼63.24 ▲0.0063.74 ▲0.21138.30 ▼4.20
Add New Post /wp-admin/post-new.php1,752 ▲4120.97 ▲0.21444.14 ▲9.22154.24 ▲0.11
Media Library /wp-admin/upload.php1,698 ▼35.54 ▲0.09139.09 ▼6.27191.70 ▲0.86

Uninstaller [IO: ▲0.08MB] [DB: ▲0.11MB] 50% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5316
    automatic_feed_links is deprecated since version 3.0.0! Use add_theme_support( 'automatic-feed-links' ) instead.
  • This plugin does not fully uninstall, leaving 1 option in the database
    • wp_hide_html_encode

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-hide/hc-custom-wp-admin-url.php:161

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 on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === wp-hide === )
  • Requires at least: Invalid version format
Please take inspiration from this readme.txt

wp-hide/wp-hide.php Passed 13 tests

The entry point to "Wp-Hide" version 0.0.2 is a PHP file that has certain tags in its header comment area
22 characters long description:
Hide Wordpress plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected243 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP26633243

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity34.00
▷ Minimum class complexity25.00
▷ Maximum class complexity43.00
Average method complexity5.50
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected