99% display-wordpress-version

Code Review | Display WordPress Version

WordPress plugin Display WordPress Version scored 99% from 54 tests.

About plugin

  • Plugin page: display-wordpress...
  • Plugin version: 1.4
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4
  • WordPress version: 5.8.1
  • First release: Dec 16, 2007
  • Latest release: Apr 5, 2020
  • Number of updates: 34
  • Update frequency: every 132.2 days
  • Top authors: pchere (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,896 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

A check of server-side resources used by Display WordPress Version
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1237.32 ▲16.98
Dashboard /wp-admin3.06 ▲0.0150.33 ▲4.89
Posts /wp-admin/edit.php3.11 ▲0.0046.56 ▲3.29
Add New Post /wp-admin/post-new.php5.42 ▼0.0287.84 ▼551.83
Media Library /wp-admin/upload.php3.00 ▲0.0034.30 ▲5.26

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Display WordPress Version
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.97 ▲0.0111.14 ▼2.7747.87 ▼3.85
Dashboard /wp-admin2,973 ▲395.91 ▼0.19140.44 ▼7.50110.35 ▼7.77
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0267.14 ▼0.6588.31 ▲2.94
Add New Post /wp-admin/post-new.php1,615 ▼6821.40 ▲2.66387.29 ▼0.79106.24 ▼9.61
Media Library /wp-admin/upload.php1,748 ▼595.04 ▲0.01165.14 ▲19.43121.27 ▲6.15

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

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 no errors were found, this is by no means 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side


Plugin configuration 93% 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
Attributes that need to be fixed:
  • Screenshots: Add an image for screenshot #1 (Shows how Powered by WordPress version is added in the footer.)
You can look at the official readme.txt

display-wordpress-version/wpversion.php 92% from 13 tests

The main PHP file in "Display WordPress Version" ver. 1.4 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("display-wordpress-version.php" instead of "wpversion.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin7 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png4.63KB4.54KB▼ 1.92%