88% wp-version-remover

Code Review | WP Version Remover

WordPress plugin WP Version Remover scored 88% from 54 tests.

About plugin

  • Plugin page: wp-version-remover
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.2
  • WordPress version: 5.8.1
  • First release: Nov 23, 2016
  • Latest release: Nov 17, 2021
  • Number of updates: 14
  • Update frequency: every 129.9 days
  • Top authors: india-web-developer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active / 3,007 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

Analyzing server-side resources used by WP Version Remover
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1448.43 ▲22.27
Dashboard /wp-admin3.09 ▲0.0349.89 ▼1.49
Posts /wp-admin/edit.php3.14 ▲0.0350.51 ▲0.70
Add New Post /wp-admin/post-new.php5.45 ▲0.0196.34 ▼563.41
Media Library /wp-admin/upload.php3.03 ▲0.0334.24 ▲0.52
WP Version Remover /wp-admin/options-general.php?page=wp_version_remover3.0131.56

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for WP Version Remover
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲12616.13 ▲0.528.10 ▲0.3045.92 ▼2.86
Dashboard /wp-admin2,975 ▲445.86 ▼0.10142.16 ▼7.37115.36 ▼3.77
Posts /wp-admin/edit.php2,744 ▲52.69 ▼0.0065.49 ▼2.9096.39 ▼9.51
Add New Post /wp-admin/post-new.php1,686 ▲318.76 ▼0.01390.87 ▲20.55117.38 ▼1.18
Media Library /wp-admin/upload.php1,815 ▲85.02 ▲0.01149.33 ▼13.47125.29 ▼13.54
WP Version Remover /wp-admin/options-general.php?page=wp_version_remover1,3082.3763.68110.15

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/wp-version-remover/lib/settings.php:5

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=wp_version_remover
    • > Javascript (severe) in unknown
    /wp-content/plugins/wp-version-remover/js/wvr-admin.js?ver=5.8.1 11:2 Uncaught TypeError: jQuery(...).ready(...) is not a function

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: css, remove generator, generator tag remover, js, version remove...

wp-version-remover/wp-version-remover.php 92% from 13 tests

The main PHP script in "WP Version Remover" version 1.5 is automatically included on every request by WordPress
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 179 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected152 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP2767140
JavaScript10111
CSS1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.55
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods218.18%
▷ Public methods11100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin