94% version-info

Code Review | Version Info

WordPress plugin Version Info scored 94% from 54 tests.

About plugin

  • Plugin page: version-info
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.3.0-5.8
  • WordPress version: 5.8.1
  • First release: Jul 12, 2016
  • Latest release: Jul 12, 2021
  • Number of updates: 29
  • Update frequency: every 63.0 days
  • Top authors: alpipego (100%)

Code review

54 tests

User reviews

13 reviews

Install metrics

10,000+ active / 57,879 total downloads

Benchmarks

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: ▼138.14ms] Passed 4 tests

This is a short check of server-side resources used by Version Info
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1232.90 ▲11.08
Dashboard /wp-admin3.06 ▲0.0151.66 ▲9.04
Posts /wp-admin/edit.php3.11 ▲0.0147.42 ▲6.42
Add New Post /wp-admin/post-new.php5.42 ▼0.0183.78 ▼568.39
Media Library /wp-admin/upload.php3.00 ▲0.0034.39 ▲0.37

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Version Info
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.82 ▼0.288.33 ▼3.0441.47 ▼6.31
Dashboard /wp-admin2,967 ▲335.91 ▼0.09132.72 ▼16.17104.06 ▼14.77
Posts /wp-admin/edit.php2,739 ▼02.72 ▲0.0164.38 ▼7.7988.60 ▲5.83
Add New Post /wp-admin/post-new.php1,683 ▲18318.71 ▲0.31395.39 ▲19.44108.44 ▼1.59
Media Library /wp-admin/upload.php1,807 ▼35.03 ▼0.01147.54 ▼10.70119.29 ▲6.39

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught TypeError: Argument 1 passed to VersionInfo::__construct() must be an instance of wpdb, null given, called in wp-content/plugins/version-info/version-info.php on line 52 and defined in wp-content/plugins/version-info/version-info.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: support, admin, server, php, version...

version-info/version-info.php Passed 13 tests

The principal PHP file in "Version Info" v. 1.2.1 is loaded by WordPress automatically on each request
74 characters long description:
Show current WordPress, PHP, Web Server and MySQL versions in admin footer

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
There were no executable files found in this plugin23 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP182123

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.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