90% hide-plugins

Code Review | Hide Plugins

WordPress plugin Hide Plugins scored 90% from 54 tests.

About plugin

  • Plugin page: hide-plugins
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5
  • WordPress version: 6.3.1
  • First release: May 21, 2014
  • Latest release: Apr 22, 2016
  • Number of updates: 8
  • Update frequency: every 87.8 days
  • Top authors: ThemeBoy (87.5%)brianmiyaji (25%)

Code review

54 tests

User reviews

9 reviews

Install metrics

2,000+ active / 17,381 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼9.83ms] Passed 4 tests

Server-side resources used by Hide Plugins
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0370.76 ▼5.30
Dashboard /wp-admin3.33 ▲0.0276.87 ▼6.19
Posts /wp-admin/edit.php3.38 ▲0.0279.27 ▼16.22
Add New Post /wp-admin/post-new.php5.91 ▲0.02154.52 ▼1.74
Media Library /wp-admin/upload.php3.25 ▲0.0257.04 ▼11.59

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
hide_plugins_user

Browser metrics Passed 4 tests

This is an overview of browser requirements for Hide Plugins
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲1914.44 ▲0.274.58 ▲1.0881.21 ▼4.37
Dashboard /wp-admin2,200 ▲185.09 ▲0.20182.38 ▼15.1683.79 ▼6.79
Posts /wp-admin/edit.php2,089 ▼31.97 ▼0.0763.57 ▼9.9973.80 ▼3.47
Add New Post /wp-admin/post-new.php1,414 ▲1717.71 ▼0.14963.91 ▼9.5176.82 ▼0.06
Media Library /wp-admin/upload.php1,388 ▲64.22 ▲0.05181.54 ▲0.5097.08 ▼2.58

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • hide_plugins_user

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: secret, admin, hidden, hide, visibility...

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

Analyzing the main PHP file in "Hide Plugins" version 1.0.4
44 characters long description:
Hide installed plugins from all other users.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected455 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PO File115,41211,552348
PHP12964107

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity3.20
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods990.00%
▷ Protected methods00.00%
▷ Private methods110.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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