73% auto-disable-editor

Code Review | Disable Gutenberg

WordPress plugin Disable Gutenberg scored73%from 54 tests.

About plugin

  • Plugin page: auto-disable-editor
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.8
  • WordPress version: 6.3.1
  • First release: Sep 21, 2019
  • Latest release: Aug 8, 2021
  • Number of updates: 18
  • Update frequency: every 38.2 days
  • Top authors: codepopular (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /19,459 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▼0.61MB] [CPU: ▼9.34ms] Passed 4 tests

Server-side resources used by Disable Gutenberg
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.12 ▼5.07
Dashboard /wp-admin3.33 ▲0.0244.14 ▼5.92
Posts /wp-admin/edit.php3.38 ▲0.0250.42 ▲2.67
Add New Post /wp-admin/post-new.php3.41 ▼2.4857.83 ▼29.02
Media Library /wp-admin/upload.php3.25 ▲0.0237.16 ▲3.00
Auto Disable Gutenburg /wp-admin/options-general.php?page=auto-disable-gutenburg3.2228.59

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is 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,804 ▲5813.25 ▼1.331.70 ▲0.0144.44 ▼0.16
Dashboard /wp-admin2,210 ▲194.89 ▼1.09107.56 ▼12.3738.04 ▼9.34
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0339.33 ▼0.9434.64 ▼1.95
Add New Post /wp-admin/post-new.php3,092 ▲1,5737.79 ▼15.34197.89 ▼420.5670.19 ▲10.33
Media Library /wp-admin/upload.php1,395 ▲74.18 ▼0.0799.04 ▼24.3139.30 ▼11.27
Auto Disable Gutenburg /wp-admin/options-general.php?page=auto-disable-gutenburg7722.0626.2930.93

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/auto-disable-editor/auto-disable-editor.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/auto-disable-editor/Admin/admin.php:6

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
    • > GET request to /wp-admin/options-general.php?page=auto-disable-gutenburg
    • > Javascript (severe) in unknown
    /wp-admin/options-general.php?page=auto-disable-gutenburg - Access to script at 'https://embed.tawk.to/5e20001027773e0d832dcb90/default' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
    • > GET request to /wp-admin/options-general.php?page=auto-disable-gutenburg
    • > Network (severe)
    https://embed.tawk.to/5e20001027773e0d832dcb90/default - Failed to load resource: net::ERR_FAILED

Optimizations

Plugin configuration Passed 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: gutenberg, disable gutenberg, disable block editor, how to disable gutenberg, remove gutenberg...

auto-disable-editor/auto-disable-editor.php Passed 13 tests

"Disable Gutenberg" version 1.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
103 characters long description:
Auto Disable Gutenberg will help to enable classic editor. its will disable new gutenberg block plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected114 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP36524105
JavaScript1309

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity5.50
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods450.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin