84% wp-post-revisions

Code Review | WP Post Revisions

WordPress plugin WP Post Revisions scored84%from 54 tests.

About plugin

  • Plugin page: wp-post-revisions
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.0
  • WordPress version: 6.3.1
  • First release: Nov 17, 2014
  • Latest release: Nov 17, 2014
  • Number of updates: 15
  • Update frequency: every 0.1 days
  • Top authors: pkdq (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /944 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Analyzing server-side resources used by WP Post Revisions
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.63 ▼3.83
Dashboard /wp-admin3.32 ▲0.0142.61 ▼5.47
Posts /wp-admin/edit.php3.37 ▲0.0145.96 ▲4.75
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.72 ▼8.67
Media Library /wp-admin/upload.php3.24 ▲0.0135.16 ▲2.06

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: 1 new table, 9 new options
New tables
wp_post_revisions
New WordPress options
widget_recent-posts
can_compress_scripts
post_revisions_presentation_version_number
post_revisions_presentation_count
db_upgraded
post_revisions_presentation_title
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by WP Post Revisions
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲5114.74 ▲0.071.91 ▲0.1943.56 ▼2.88
Dashboard /wp-admin2,206 ▲155.86 ▲0.00107.95 ▲4.8241.00 ▲1.55
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0138.98 ▼1.1735.34 ▼1.58
Add New Post /wp-admin/post-new.php6,271 ▲4,75226.05 ▲4.91904.01 ▲303.7564.41 ▲12.51
Media Library /wp-admin/upload.php1,388 ▲64.19 ▼0.1194.12 ▼0.8041.46 ▼5.26

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-post-revisions/general_settings.php:34
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-post-revisions/uninstall.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-post-revisions/post_revisions_presentation.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-post-revisions/create_post_meta_field.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-post-revisions/create_post_list_field.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-post-revisions/index.php:41

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: There are too many tags (16 tag instead of maximum 10)
Please take inspiration from this readme.txt

wp-post-revisions/index.php 92% from 13 tests

Analyzing the main PHP file in "WP Post Revisions" version 1.0
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-post-revisions.php" instead of "index.php")

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
There were no executable files found in this plugin278 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP64218192
JavaScript125086

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin