84% future-revisions-manager

Code Review | Future Revisions Manager

WordPress plugin Future Revisions Manager scored84%from 54 tests.

About plugin

  • Plugin page: future-revisions-...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.3
  • WordPress version: 6.3.1
  • First release: Sep 30, 2016
  • Latest release: Oct 5, 2016
  • Number of updates: 5
  • Update frequency: every 1.2 days
  • Top authors: supriyassurve (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /497 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Future Revisions Manager
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0138.00 ▼2.31
Dashboard /wp-admin3.32 ▲0.0245.10 ▼2.84
Posts /wp-admin/edit.php3.37 ▲0.0146.63 ▼1.51
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.28 ▼4.17
Media Library /wp-admin/upload.php3.24 ▲0.0133.97 ▼0.61
Future Revision Manager Settings /wp-admin/options-general.php?page=frm-setting-admin3.2129.78

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Future Revisions Manager
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.70 ▼0.611.75 ▼0.1039.75 ▼6.81
Dashboard /wp-admin2,210 ▲224.86 ▼1.0496.27 ▼18.6638.16 ▼6.91
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0134.18 ▼1.8533.34 ▲1.39
Add New Post /wp-admin/post-new.php1,545 ▲3118.12 ▲0.59586.27 ▼105.6655.45 ▼1.01
Media Library /wp-admin/upload.php1,386 ▲14.22 ▲0.0296.79 ▼4.7840.55 ▼1.68
Future Revision Manager Settings /wp-admin/options-general.php?page=frm-setting-admin9432.2024.9130.92

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/future-revisions-manager/future-revisions-manager.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (The Settings page menu.), #2 (The Settings page interface.)
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === future-revisions-manager === )
The official readme.txt might help

future-revisions-manager/future-revisions-manager.php Passed 13 tests

The main PHP script in "Future Revisions Manager" version 2.0 is automatically included on every request by WordPress
129 characters long description:
This plugin will help you to create a copy of published post to restrict the direct submit for posts/ pages/ any other post type.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected165 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13662165

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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