84% wp-revision-list

Code Review | WP Revision List

WordPress plugin WP Revision List scored84%from 54 tests.

About plugin

  • Plugin page: wp-revision-list
  • Plugin version: 1.1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.0
  • WordPress version: 6.3.1
  • First release: Apr 10, 2015
  • Latest release: Dec 16, 2018
  • Number of updates: 20
  • Update frequency: every 67.3 days
  • Top authors: GunGeekATX (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,739 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼5.47ms] Passed 4 tests

Server-side resources used by WP Revision List
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0435.83 ▼5.42
Dashboard /wp-admin3.35 ▲0.0547.15 ▼6.89
Posts /wp-admin/edit.php3.47 ▲0.1149.71 ▲3.84
Add New Post /wp-admin/post-new.php5.93 ▲0.0493.45 ▼8.50
Media Library /wp-admin/upload.php3.27 ▲0.0434.75 ▼1.08
WP Revision List /wp-admin/options-general.php?page=wp-revision-list-settings3.2430.35

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

WP Revision List: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲8013.24 ▼1.341.68 ▼0.1741.12 ▼7.30
Dashboard /wp-admin2,207 ▲164.87 ▼0.02110.52 ▲7.3940.66 ▼5.72
Posts /wp-admin/edit.php2,119 ▲302.02 ▼0.0140.02 ▲0.9935.35 ▲0.64
Add New Post /wp-admin/post-new.php1,517 ▼1617.80 ▼5.20647.74 ▼22.8359.89 ▲3.04
Media Library /wp-admin/upload.php1,392 ▲44.19 ▼0.0396.03 ▼13.2042.14 ▼3.44
WP Revision List /wp-admin/options-general.php?page=wp-revision-list-settings8522.0324.6827.03

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 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 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
Please fix the following
  • 7× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-revision-list/includes/partials/admin-help.php
    • > /wp-content/plugins/wp-revision-list/includes/class-wp-revision-list-screen-options.php
    • > /wp-content/plugins/wp-revision-list/uninstall.php
    • > /wp-content/plugins/wp-revision-list/wp-revision-list.php
    • > /wp-content/plugins/wp-revision-list/includes/class-wp-revision-list-core.php
    • > /wp-content/plugins/wp-revision-list/includes/class-wp-revision-list-table.php
    • > /wp-content/plugins/wp-revision-list/includes/class-wp-revision-list-settings.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

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
5 plugin tags: revisions, page, custom post type, admin, post

wp-revision-list/wp-revision-list.php Passed 13 tests

The principal PHP file in "WP Revision List" v. 1.1.8 is loaded by WordPress automatically on each request
94 characters long description:
Show revisions when viewing lists of posts, pages, or custom post types in the admin dashboard

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin437 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP717936437

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity13.75
▷ Minimum class complexity8.00
▷ Maximum class complexity19.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods34
▷ Static methods00.00%
▷ Public methods2573.53%
▷ Protected methods00.00%
▷ Private methods926.47%
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
No PNG images were found in this plugin