84% wp-version-tag-remover

Code Review | WP Version Tag Remover

WordPress plugin WP Version Tag Remover scored84%from 54 tests.

About plugin

  • Plugin page: wp-version-tag-re...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 21, 2020
  • Latest release: Mar 28, 2023
  • Number of updates: 20
  • Update frequency: every 53.6 days
  • Top authors: arulprasadj (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,751 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼1.64ms] Passed 4 tests

Server-side resources used by WP Version Tag Remover
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0838.56 ▼2.02
Dashboard /wp-admin3.36 ▲0.0545.42 ▼4.51
Posts /wp-admin/edit.php3.41 ▲0.0545.52 ▲0.49
Add New Post /wp-admin/post-new.php5.94 ▲0.0593.45 ▲5.65
Media Library /wp-admin/upload.php3.28 ▲0.0531.67 ▼0.51
WP Version Tag Remover /wp-admin/options-general.php?page=wp-version-tag-remover/core/admin/admin-page.php3.2728.14

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 9 new options
New WordPress options
wvtr_remove_script
widget_recent-posts
widget_recent-comments
wvtr_remove_css
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
wvtr_remove_generator

Browser metrics Passed 4 tests

Checking browser requirements for WP Version Tag Remover
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.36 ▼0.282.01 ▲0.0346.79 ▲0.42
Dashboard /wp-admin2,202 ▲285.58 ▲0.0484.07 ▼17.3938.06 ▼8.34
Posts /wp-admin/edit.php2,101 ▲11.97 ▲0.0235.16 ▼7.0335.47 ▲0.34
Add New Post /wp-admin/post-new.php1,542 ▲1423.33 ▲0.25596.46 ▼13.3952.33 ▲2.66
Media Library /wp-admin/upload.php1,401 ▼24.15 ▼0.0996.39 ▼1.8042.44 ▼0.76
WP Version Tag Remover /wp-admin/options-general.php?page=wp-version-tag-remover/core/admin/admin-page.php8272.0029.3227.60

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
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
The following issues need your attention
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-version-tag-remover/core/admin/admin-page.php
    • > /wp-content/plugins/wp-version-tag-remover/core/apj-functions.php

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 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Contributors: Contributors not specified
The official readme.txt might help

wp-version-tag-remover/wp-version-tag-remover.php Passed 13 tests

The main file in "WP Version Tag Remover" v. 2.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
83 characters long description:
This plugin will remove the WordPress, CSS and JS version from your website header.

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
Success! There were no dangerous files found in this plugin267 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP423105267

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity2.35
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods17
▷ Static methods17100.00%
▷ Public methods1588.24%
▷ Protected methods00.00%
▷ Private methods211.76%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants12100.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
No PNG files were detected