68% hide-my-site

Code Review | Hide My Site

WordPress plugin Hide My Site scored68%from 54 tests.

About plugin

  • Plugin page: hide-my-site
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-6.2.2
  • WordPress version: 6.3.1
  • First release: May 17, 2013
  • Latest release: Jun 3, 2023
  • Number of updates: 119
  • Update frequency: every 30.8 days
  • Top authors: clevelandwebdeveloper (100%)

Code review

54 tests

User reviews

55 reviews

Install metrics

20,000+ active /376,782 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.27MB] [CPU: ▼2.60ms] Passed 4 tests

This is a short check of server-side resources used by Hide My Site
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.86 ▲0.4044.45 ▲0.22
Dashboard /wp-admin3.55 ▲0.2555.97 ▲3.66
Posts /wp-admin/edit.php3.67 ▲0.3151.51 ▼3.30
Add New Post /wp-admin/post-new.php6.15 ▲0.2687.14 ▼10.25
Media Library /wp-admin/upload.php3.47 ▲0.2438.28 ▲2.95
Hide My Site /wp-admin/options-general.php?page=hide_my_site-setting-admin3.4746.22

Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 53 new files
Database: 1 new table, 6 new options
New tables
wp_hidemysiteSecure
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is 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,849 ▲8813.37 ▼0.881.83 ▲0.1445.44 ▼2.28
Dashboard /wp-admin2,255 ▲785.82 ▲0.1799.17 ▲0.0245.09 ▲0.82
Posts /wp-admin/edit.php2,162 ▲622.60 ▲0.6539.98 ▲4.3635.31 ▼1.04
Add New Post /wp-admin/post-new.php1,580 ▲5223.37 ▲0.15686.90 ▲12.0338.89 ▼15.36
Media Library /wp-admin/upload.php1,463 ▲634.51 ▲0.31101.59 ▲0.9244.25 ▼1.62
Hide My Site /wp-admin/options-general.php?page=hide_my_site-setting-admin1,7073.4058.3274.37

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
  • This plugin does not fully uninstall, leaving 1 table in the database
    • wp_hidemysiteSecure
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/hide-my-site/templates/hmsdiscreet.php
  • 17× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/hide-my-site/templates/hmsiris.php:13
    • > PHP Notice
      Undefined variable: mobile_friendly in wp-content/plugins/hide-my-site/templates/hmsbinder.php on line 4
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/hide-my-site/templates/hmslockandkey.php:13
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/hide-my-site/templates/hmsice.php:13
    • > PHP Notice
      Undefined variable: mobile_friendly in wp-content/plugins/hide-my-site/templates/hmsdiscreet.php on line 67
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/hide-my-site/templates/hmsbinder.php:13
    • > PHP Notice
      Undefined variable: mobile_friendly in wp-content/plugins/hide-my-site/templates/hmsiris.php on line 4
    • > PHP Notice
      Undefined variable: mobile_friendly in wp-content/plugins/hide-my-site/templates/hmsdiscreet.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/hide-my-site/index.php:26
    • > PHP Notice
      Undefined variable: messagehtml in wp-content/plugins/hide-my-site/templates/hmsdiscreet.php on line 81

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: Please add descriptions for these screenshots #2, #3, #4, #5, #6, #7 in hide-my-site/assets to your readme.txt
Please take inspiration from this readme.txt

hide-my-site/index.php 85% from 13 tests

The main file in "Hide My Site" v. 2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 545 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("hide-my-site.php" instead of "index.php")

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
Good job! No executable or dangerous file extensions detected1,629 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP91702241,603
JavaScript214526

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity58.50
▷ Minimum class complexity14.00
▷ Maximum class complexity103.00
Average method complexity3.74
▷ Minimum method complexity1.00
▷ Maximum method complexity33.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods42
▷ Static methods00.00%
▷ Public methods42100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
29 PNG files occupy 0.33MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/input_back_binder.png0.40KB0.25KB▼ 35.71%
images/buy_sprite.png67.06KB21.75KB▼ 67.56%
images/green_ribbon_right.png2.71KB1.88KB▼ 30.73%
images/login_button_ice.png2.30KB1.78KB▼ 22.89%
images/login_button_binder.png1.81KB1.27KB▼ 29.98%