90% hidden-plugin

Code Review | Hidden Plugin

WordPress plugin Hidden Plugin scored90%from 54 tests.

About plugin

  • Plugin page: hidden-plugin
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.0
  • WordPress version: 6.3.1
  • First release: Nov 4, 2017
  • Latest release: Dec 11, 2018
  • Number of updates: 18
  • Update frequency: every 22.3 days
  • Top authors: shiyarsuresh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /790 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.28ms] Passed 4 tests

An overview of server-side resources used by Hidden Plugin
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.12 ▼4.35
Dashboard /wp-admin3.33 ▼0.0251.80 ▼9.44
Posts /wp-admin/edit.php3.38 ▲0.0251.42 ▼0.48
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.52 ▼6.86
Media Library /wp-admin/upload.php3.25 ▲0.0238.73 ▲3.36
Hidden Plugin /wp-admin/options-general.php?page=hidden_plugin3.2234.66

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Hidden Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲2614.73 ▲0.441.83 ▼0.3943.62 ▼2.92
Dashboard /wp-admin2,206 ▲295.62 ▼0.0596.33 ▲3.4642.22 ▲2.78
Posts /wp-admin/edit.php2,108 ▲82.01 ▼0.0236.27 ▼2.8833.92 ▼4.99
Add New Post /wp-admin/post-new.php1,533 ▲523.11 ▲2.01679.03 ▲23.9364.80 ▲11.91
Media Library /wp-admin/upload.php1,411 ▲144.26 ▲0.0696.94 ▼13.8543.51 ▼2.43
Hidden Plugin /wp-admin/options-general.php?page=hidden_plugin9431.9933.8031.92

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Donate link: Invalid url: "#"
The official readme.txt is a good inspiration

hidden-plugin/hidden-plugin.php Passed 13 tests

The main PHP script in "Hidden Plugin" version 1.0 is automatically included on every request by WordPress
33 characters long description:
Hide plugins from Selected users.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin793 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2141161614
PHP22037176
CSS2053

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity10.50
▷ Minimum class complexity10.00
▷ Maximum class complexity11.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
0.0.1/screenshot-2.png29.91KB12.92KB▼ 56.80%
screenshot-2.png29.91KB12.92KB▼ 56.80%
screenshot-1.png27.16KB11.88KB▼ 56.28%
0.0.1/screenshot-1.png27.16KB11.88KB▼ 56.28%