90% disable-gutenberg-autosave

Code Review | Disable Gutenberg Autosave

WordPress plugin Disable Gutenberg Autosave scored90%from 54 tests.

About plugin

  • Plugin page: disable-gutenberg...
  • Plugin version: 1.0.11
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-6.0
  • WordPress version: 6.3.1
  • First release: Sep 9, 2018
  • Latest release: Jun 11, 2022
  • Number of updates: 16
  • Update frequency: every 85.7 days
  • Top authors: websevendev (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

2,000+ active /22,736 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 gracefully, with no errors

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

A check of server-side resources used by Disable Gutenberg Autosave
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0249.76 ▲9.69
Dashboard /wp-admin3.33 ▼0.0246.93 ▼18.44
Posts /wp-admin/edit.php3.38 ▲0.0247.56 ▼7.80
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.04 ▼17.25
Media Library /wp-admin/upload.php3.25 ▲0.0236.12 ▼0.34

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Disable Gutenberg Autosave
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▼0.151.80 ▲0.1839.03 ▼7.40
Dashboard /wp-admin2,198 ▲245.57 ▼0.0481.86 ▼18.9838.79 ▼4.86
Posts /wp-admin/edit.php2,100 ▲31.95 ▼0.0536.27 ▲0.5332.86 ▼2.90
Add New Post /wp-admin/post-new.php1,535 ▲222.95 ▲0.42689.21 ▲24.4859.49 ▼2.24
Media Library /wp-admin/upload.php1,397 ▼04.18 ▼0.1195.88 ▼7.3743.25 ▼4.30

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: autosave, gutenberg

disable-gutenberg-autosave/disable-gutenberg-autosave.php Passed 13 tests

"Disable Gutenberg Autosave" version 1.0.11's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
60 characters long description:
Allows to disable Gutenberg autosave or change the interval.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin290 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2260207
PHP2143675
Sass1107
CSS1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
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
Namespaces1
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%
Functions8
▷ Named functions225.00%
▷ Anonymous functions675.00%
Constants1
▷ Global constants1100.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
There are no PNG files in this plugin