84% remove-wp-version-and-shortlink

Code Review | Remove WP version and shortlink

WordPress plugin Remove WP version and shortlink scored 84% from 54 tests.

About plugin

  • Plugin page: remove-wp-version...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-3.5
  • WordPress version: 6.3.1
  • First release: May 1, 2013
  • Latest release: May 1, 2013
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: naganandhini (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

500+ active / 4,774 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

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

Server-side resources used by Remove WP version and shortlink
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0035.49 ▼6.47
Dashboard /wp-admin3.31 ▲0.0043.05 ▼4.47
Posts /wp-admin/edit.php3.36 ▲0.0044.58 ▼5.62
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.91 ▲9.84
Media Library /wp-admin/upload.php3.23 ▲0.0032.07 ▼6.21

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Remove WP version and shortlink
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲6414.45 ▼0.011.75 ▼0.6238.96 ▼12.91
Dashboard /wp-admin2,209 ▲214.86 ▼0.22100.02 ▼14.7239.35 ▼4.86
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0434.90 ▼1.0034.59 ▼4.36
Add New Post /wp-admin/post-new.php1,542 ▲1418.48 ▲0.12678.11 ▲47.0554.64 ▲3.70
Media Library /wp-admin/upload.php1,391 ▼04.28 ▲0.1397.21 ▼4.5642.78 ▼2.20

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/remove-wp-version-and-shortlink/version-shortlink.php:12

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 on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
9 plugin tags: remove version, cleanup header, version, remove shortlink, remove wordpress version...

remove-wp-version-and-shortlink/version-shortlink.php 92% from 13 tests

"Remove WP version and shortlink" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("remove-wp-version-and-shortlink.php" instead of "version-shortlink.php")

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 plugin6 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP10136

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
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
No PNG files were detected