100% disable-gutenberg-autosave

Code Review | Disable Gutenberg Autosave

WordPress plugin Disable Gutenberg Autosave scored 100% from 54 tests.

About plugin

  • Plugin page: disable-gutenberg...
  • Plugin version: 1.0.10
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.8-5.8
  • WordPress version: 5.8.1
  • First release: Sep 9, 2018
  • Latest release: Aug 17, 2021
  • Number of updates: 13
  • Update frequency: every 82.5 days
  • Top authors: websevendev (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

2,000+ active / 15,225 total downloads

Benchmarks

Plugin footprint Passed 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: ▼142.08ms] 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 /2.84 ▲0.0133.69 ▼1.75
Dashboard /wp-admin3.07 ▲0.0148.36 ▲2.24
Posts /wp-admin/edit.php3.12 ▲0.0145.48 ▼0.82
Add New Post /wp-admin/post-new.php5.44 ▲0.0193.94 ▼558.27
Media Library /wp-admin/upload.php3.01 ▲0.0034.77 ▼7.46

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, no new 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 /3,703 ▲6615.95 ▲0.269.67 ▼1.1449.03 ▼1.96
Dashboard /wp-admin2,967 ▲336.09 ▲0.10139.70 ▼28.17114.38 ▼8.03
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0166.92 ▼3.9484.20 ▼9.65
Add New Post /wp-admin/post-new.php1,692 ▲2018.43 ▼0.40410.73 ▼9.89103.65 ▼13.14
Media Library /wp-admin/upload.php1,807 ▼05.01 ▼0.03155.53 ▼2.52111.43 ▼11.97

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

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: gutenberg, autosave

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

"Disable Gutenberg Autosave" version 1.0.10'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 plugin291 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2260207
PHP2143876
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.21
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