90% wp-revisions-manager

Code Review | WP Revisions Manager

WordPress plugin WP Revisions Manager scored90%from 54 tests.

About plugin

  • Plugin page: wp-revisions-manager
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.4
  • WordPress version: 6.3.1
  • First release: Apr 1, 2019
  • Latest release: Sep 11, 2020
  • Number of updates: 12
  • Update frequency: every 44.1 days
  • Top authors: raviry (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /4,622 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▼6.54ms] Passed 4 tests

An overview of server-side resources used by WP Revisions Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1340.96 ▲2.05
Dashboard /wp-admin3.43 ▲0.0850.03 ▼14.90
Posts /wp-admin/edit.php3.54 ▲0.1944.82 ▲0.20
Add New Post /wp-admin/post-new.php6.03 ▲0.1581.69 ▼11.43
Media Library /wp-admin/upload.php3.35 ▲0.1234.65 ▼0.01
WP Revisions Manager /wp-admin/options-general.php?page=wp-revisions-manager_options3.3232.76

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Revisions Manager
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8513.22 ▼1.162.03 ▲0.1942.74 ▼3.25
Dashboard /wp-admin2,209 ▲185.81 ▲0.91105.37 ▲4.6040.16 ▲1.62
Posts /wp-admin/edit.php2,108 ▲222.05 ▲0.0135.50 ▲0.2134.91 ▼0.22
Add New Post /wp-admin/post-new.php1,524 ▼417.41 ▼5.60634.16 ▼37.4968.53 ▲14.65
Media Library /wp-admin/upload.php1,397 ▲94.27 ▼0.0199.88 ▼5.4542.53 ▼6.02
WP Revisions Manager /wp-admin/options-general.php?page=wp-revisions-manager_options1,1602.0425.8544.30

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: wp revision manager, revision delete, revision manager, revision limit, revisions control...

wp-revisions-manager/wp-revisions-manager.php 92% from 13 tests

The entry point to "WP Revisions Manager" version 1.0.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 157 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected641 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP217192529
JavaScript11012112

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity82.00
▷ Minimum class complexity82.00
▷ Maximum class complexity82.00
Average method complexity5.26
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods1578.95%
▷ Protected methods00.00%
▷ Private methods421.05%
Functions8
▷ Named functions8100.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 images were found in this plugin