94% disable-wp-block-editor

Code Review | Disable WP Block Editor

WordPress plugin Disable WP Block Editor scored 94% from 54 tests.

About plugin

  • Plugin page: disable-wp-block-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.0.1
  • WordPress version: 5.8.1
  • First release: Dec 15, 2018
  • Latest release: Dec 15, 2018
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: rayoweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 760 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.31MB] [CPU: ▼148.19ms] Passed 4 tests

Server-side resources used by Disable WP Block Editor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0030.61 ▲4.38
Dashboard /wp-admin3.06 ▲0.0131.55 ▼9.18
Posts /wp-admin/edit.php3.11 ▼0.0034.10 ▼7.24
Add New Post /wp-admin/post-new.php4.20 ▼1.2460.88 ▼580.73
Media Library /wp-admin/upload.php3.02 ▲0.0155.88 ▲25.13

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Disable WP Block Editor: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,666 ▲1516.05 ▲0.345.20 ▼3.2074.24 ▼3.79
Dashboard /wp-admin2,930 ▲356.12 ▼0.02111.97 ▼17.93171.27 ▲0.84
Posts /wp-admin/edit.php2,740 ▲33.22 ▼0.0163.13 ▼0.61136.34 ▼3.61
Add New Post /wp-admin/post-new.php4,195 ▲3879.51 ▼9.17252.01 ▼163.23216.65 ▲56.91
Media Library /wp-admin/upload.php1,749 ▼35.49 ▼0.02171.17 ▲34.95222.18 ▲32.37

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/disable-wp-block-editor/disable.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: disable editor, gutenberg, disable gutenberg

disable-wp-block-editor/disable.php 92% from 13 tests

The principal PHP file in "Disable WP Block Editor" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("disable-wp-block-editor.php" instead of "disable.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin3 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1293

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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
Namespaces0
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%
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

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