89% plugversions

Code Review | PlugVersions - Easily rollback to previous versions of your plugins

WordPress plugin PlugVersions - Easily rollback to previous versions of your plugins scored89%from 54 tests.

About plugin

  • Plugin page: plugversions
  • Plugin version: 0.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Sep 12, 2022
  • Latest release: Aug 9, 2023
  • Number of updates: 21
  • Update frequency: every 15.7 days
  • Top authors: giuse (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

300+ active /2,418 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.62ms] Passed 4 tests

Server-side resources used by PlugVersions - Easily rollback to previous versions of your plugins
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.40 ▲0.98
Dashboard /wp-admin3.36 ▲0.0147.57 ▼7.44
Posts /wp-admin/edit.php3.41 ▲0.0548.43 ▲1.43
Add New Post /wp-admin/post-new.php5.94 ▲0.0582.49 ▼17.20
Media Library /wp-admin/upload.php3.28 ▲0.0536.36 ▼2.83

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for PlugVersions - Easily rollback to previous versions of your plugins
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.35 ▲0.002.14 ▲0.5543.43 ▲0.22
Dashboard /wp-admin2,198 ▲185.57 ▼0.1184.78 ▲0.0039.14 ▼1.15
Posts /wp-admin/edit.php2,100 ▼01.97 ▼0.0539.32 ▲1.8636.75 ▲5.20
Add New Post /wp-admin/post-new.php1,526 ▼022.96 ▼0.71695.83 ▲56.8160.35 ▲10.02
Media Library /wp-admin/upload.php1,400 ▲34.24 ▲0.0795.59 ▼10.8742.87 ▼4.05

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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 SRP test was a success

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, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Donate link: Invalid url: "buymeacoffee.com/josem"
You can take inspiration from this readme.txt

plugversions/plugversions.php 85% from 13 tests

Analyzing the main PHP file in "PlugVersions - Easily rollback to previous versions of your plugins" version 0.0.3
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: The domain path folder was not found ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin303 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP51625303

PHP code Passed 2 tests

Analyzing 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.63
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%
Functions12
▷ Named functions541.67%
▷ Anonymous functions758.33%
Constants3
▷ Global constants3100.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
There are no PNG files in this plugin