10% wp-hide-my-site

Code Review | Hide my site

WordPress plugin Hide my site scored10%from 54 tests.

About plugin

  • Plugin page: wp-hide-my-site
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-3.6
  • WordPress version: 6.3.1
  • First release: Aug 7, 2013
  • Latest release: Aug 7, 2013
  • Number of updates: 13
  • Update frequency: every 0.1 days
  • Top authors: jefspereira (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,755 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.404.73 ▼36.23
Dashboard /wp-admin2.09 ▼1.226.93 ▼52.41
Posts /wp-admin/edit.php2.09 ▼1.276.89 ▼40.72
Add New Post /wp-admin/post-new.php2.09 ▼3.806.42 ▼88.89
Media Library /wp-admin/upload.php2.09 ▼1.155.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,869 ▲9813.31 ▼0.981.73 ▼0.2139.29 ▼2.61
Dashboard /wp-admin2,235 ▲565.83 ▲0.77101.82 ▼3.7450.22 ▲7.31
Posts /wp-admin/edit.php2,144 ▲522.26 ▲0.2639.12 ▲2.7142.37 ▲9.56
Add New Post /wp-admin/post-new.php1,397 ▲520.49 ▲2.08560.18 ▼59.3040.45 ▼5.95
Media Library /wp-admin/upload.php1,430 ▲424.25 ▲0.07104.05 ▼21.0849.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

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)
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP23021187
CSS191105
JavaScript12012

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 code0.16
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.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
2 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/logo-hidden.png12.67KB6.16KB▼ 51.41%
screenshot-1.png32.17KB27.49KB▼ 14.55%