90% disable-gutenberg

Code Review | Disable Gutenberg

WordPress plugin Disable Gutenberg scored90%from 54 tests.

About plugin

  • Plugin page: disable-gutenberg
  • Plugin version: 3.1
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4
  • WordPress version: 6.3.1
  • First release: Apr 18, 2018
  • Latest release: Oct 21, 2023
  • Number of updates: 35
  • Update frequency: every 57.5 days
  • Top authors: specialk (100%)

Code review

54 tests

User reviews

697 reviews

Install metrics

700,000+ active /6,873,421 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▼0.40MB] [CPU: ▼14.32ms] Passed 4 tests

Analyzing server-side resources used by Disable Gutenberg
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1338.54 ▲0.72
Dashboard /wp-admin3.56 ▲0.2149.50 ▼11.55
Posts /wp-admin/edit.php3.67 ▲0.3250.97 ▲3.48
Add New Post /wp-admin/post-new.php3.70 ▼2.1858.92 ▼49.91
Media Library /wp-admin/upload.php3.48 ▲0.2541.82 ▲8.37
Disable Gutenberg /wp-admin/options-general.php?page=disable-gutenberg3.4535.55

Server storage [IO: ▲0.99MB] [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: 22 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Disable Gutenberg
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,782 ▲3614.15 ▼0.201.59 ▼0.0736.18 ▼2.04
Dashboard /wp-admin2,199 ▲285.62 ▲0.0585.92 ▼3.5139.00 ▼4.61
Posts /wp-admin/edit.php2,107 ▲71.97 ▼0.0634.98 ▼7.0231.95 ▼7.31
Add New Post /wp-admin/post-new.php3,112 ▲1,5867.83 ▼15.88173.19 ▼488.5266.10 ▲12.73
Media Library /wp-admin/upload.php1,404 ▲14.16 ▼0.01102.08 ▲6.6946.06 ▲3.06
Disable Gutenberg /wp-admin/options-general.php?page=disable-gutenberg1,0802.1044.2945.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 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 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: gutenberg, block editor, classic editor, editor

disable-gutenberg/disable-gutenberg.php 92% from 13 tests

The main PHP file in "Disable Gutenberg" ver. 3.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 167 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin3,620 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
PHP1065260805
JavaScript1251101
CSS25243

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions61
▷ Named functions61100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin