90% disable-post-revision

Code Review | Disable Post Revision

WordPress plugin Disable Post Revision scored90%from 54 tests.

About plugin

  • Plugin page: disable-post-revi...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.1
  • WordPress version: 6.3.1
  • First release: May 24, 2016
  • Latest release: Oct 28, 2022
  • Number of updates: 19
  • Update frequency: every 123.6 days
  • Top authors: joelcj91 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

3,000+ active /18,607 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

This is a short check of server-side resources used by Disable Post Revision
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.87 ▼1.69
Dashboard /wp-admin3.32 ▼0.0248.73 ▼15.72
Posts /wp-admin/edit.php3.37 ▲0.0250.71 ▲2.51
Add New Post /wp-admin/post-new.php5.90 ▲0.0286.80 ▼9.93
Media Library /wp-admin/upload.php3.24 ▲0.0240.78 ▲2.08

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
dpr_disabled_types
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Disable Post Revision
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.64 ▼0.831.73 ▼0.1440.82 ▼1.55
Dashboard /wp-admin2,206 ▲184.88 ▼0.94111.78 ▲1.7741.74 ▼1.48
Posts /wp-admin/edit.php2,092 ▼02.05 ▼0.0040.26 ▲2.6635.47 ▲0.22
Add New Post /wp-admin/post-new.php1,514 ▼017.77 ▲0.18664.63 ▼9.5352.56 ▲3.49
Media Library /wp-admin/upload.php1,388 ▼34.23 ▼0.08106.45 ▼10.2443.24 ▼5.36

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • dpr_disabled_types

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: revisions, disable auto save, page revision, auto save, post revision...

disable-post-revision/disable-post-revision.php 92% from 13 tests

Analyzing the main PHP file in "Disable Post Revision" version 1.0.1
You should first fix the following items:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

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
Everything looks great! No dangerous files found in this plugin40 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1248740

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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