94% versionthis

Code Review | Version This

WordPress plugin Version This scored 94% from 54 tests.

About plugin

  • Plugin page: versionthis
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.0-3.9.0
  • WordPress version: 5.8.1
  • First release: Aug 4, 2014
  • Latest release: Aug 4, 2014
  • Number of updates: 2
  • Update frequency: every 9.5 days
  • Top authors: sebastiaandegeus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 2,079 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼146.95ms] Passed 4 tests

Analyzing server-side resources used by Version This
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0139.44 ▲4.11
Dashboard /wp-admin3.07 ▲0.0242.50 ▼4.54
Posts /wp-admin/edit.php3.12 ▲0.0148.33 ▲0.77
Add New Post /wp-admin/post-new.php5.43 ▲0.00101.77 ▼564.66
Media Library /wp-admin/upload.php3.01 ▲0.0128.90 ▼19.36

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

How much does this plugin use your filesystem and database?
The 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 Version This
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10815.89 ▲0.099.59 ▼1.6248.23 ▼4.68
Dashboard /wp-admin2,970 ▲395.89 ▼0.13142.20 ▼14.54112.37 ▼15.07
Posts /wp-admin/edit.php2,736 ▼32.70 ▲0.0065.32 ▼2.6695.94 ▲0.81
Add New Post /wp-admin/post-new.php1,683 ▼016.28 ▼2.40392.10 ▼12.77106.56 ▼12.99
Media Library /wp-admin/upload.php1,807 ▼05.02 ▲0.01164.42 ▲10.15125.55 ▼7.73

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
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/versionthis/versionthis.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: css versions, javascript versions, asset version, css browser caching, js browser caching...

versionthis/versionthis.php 92% from 13 tests

The main PHP script in "Version This" version 1.1.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 147 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
There were no executable files found in this plugin82 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP118747
Markdown122035

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods685.71%
▷ Public methods685.71%
▷ Protected methods00.00%
▷ Private methods114.29%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin