90% hide-generator-version

Code Review | Hide Generator Version

WordPress plugin Hide Generator Version scored90%from 54 tests.

About plugin

  • Plugin page: hide-generator-ve...
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-6.3
  • WordPress version: 6.3.1
  • First release: Jul 9, 2018
  • Latest release: Aug 12, 2023
  • Number of updates: 20
  • Update frequency: every 93.0 days
  • Top authors: freemp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /826 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼11.34ms] Passed 4 tests

This is a short check of server-side resources used by Hide Generator Version
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.61 ▼3.44
Dashboard /wp-admin3.32 ▼0.0352.43 ▼7.63
Posts /wp-admin/edit.php3.37 ▲0.0148.43 ▲4.56
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.55 ▼31.04
Media Library /wp-admin/upload.php3.24 ▲0.0131.45 ▼3.26

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

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

Browser metrics Passed 4 tests

Hide Generator Version: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,798 ▲5213.66 ▼0.751.71 ▼0.0743.84 ▼2.97
Dashboard /wp-admin2,206 ▲185.90 ▲0.05106.29 ▼9.9743.04 ▼0.86
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0138.73 ▲4.0435.92 ▲1.23
Add New Post /wp-admin/post-new.php1,535 ▲523.09 ▲4.90701.10 ▲88.2057.03 ▲10.05
Media Library /wp-admin/upload.php1,388 ▼04.21 ▲0.04109.98 ▲6.9546.06 ▲1.50

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

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

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: hide, generator, release, version, remove

hide-generator-version/hide-generator-version.php Passed 13 tests

"Hide Generator Version" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
88 characters long description:
Removes the 'generator' meta-tag and comprehensively hides the WordPress version number.

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 detected15 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP231415

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions1
▷ Named functions1100.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
There are no PNG files in this plugin