84% revisionize

Code Review | Revisionize

WordPress plugin Revisionize scored84%from 54 tests.

About plugin

  • Plugin page: revisionize
  • Plugin version: 2.3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.2.2
  • WordPress version: 6.3.1
  • First release: Oct 4, 2016
  • Latest release: Mar 28, 2021
  • Number of updates: 41
  • Update frequency: every 40.1 days
  • Top authors: jamiechong (100%)

Code review

54 tests

User reviews

24 reviews

Install metrics

7,000+ active /92,110 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.24MB] [CPU: ▼2.95ms] Passed 4 tests

A check of server-side resources used by Revisionize
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2148.35 ▲7.63
Dashboard /wp-admin3.60 ▲0.3053.35 ▼0.14
Posts /wp-admin/edit.php3.66 ▲0.3050.87 ▲3.11
Add New Post /wp-admin/post-new.php6.12 ▲0.2489.50 ▼18.42
Media Library /wp-admin/upload.php3.46 ▲0.2337.88 ▲3.66
Revisionize /wp-admin/options-general.php?page=revisionize3.4339.98

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
revisionize_settings
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Revisionize: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲12013.19 ▼1.192.16 ▼0.0646.18 ▲4.20
Dashboard /wp-admin2,230 ▲424.86 ▼0.10112.34 ▼5.8942.55 ▼1.38
Posts /wp-admin/edit.php2,122 ▲332.01 ▼0.1334.54 ▼4.7635.37 ▲0.55
Add New Post /wp-admin/post-new.php1,551 ▲3723.45 ▲5.88666.66 ▲45.0652.87 ▼7.86
Media Library /wp-admin/upload.php1,409 ▲214.18 ▼0.20106.96 ▲10.6046.30 ▲4.24
Revisionize /wp-admin/options-general.php?page=revisionize8962.0225.5036.46

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • revisionize_settings

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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 items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Revisionize\\plugin_basename() in wp-content/plugins/revisionize/revisionize.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Revisionize\\add_action() in wp-content/plugins/revisionize/settings.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
8 plugin tags: cron, stage, staging, schedule, publishing...

revisionize/revisionize.php 92% from 13 tests

The entry point to "Revisionize" version 2.3.4 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 149 characters long)

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
Success! There were no dangerous files found in this plugin901 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP320981901

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.20
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes1100.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods8
▷ Static methods225.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions88
▷ Named functions8798.86%
▷ Anonymous functions11.14%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected