84% sp-disable-block-editor

Code Review | Disable Gutenberg (SP Disable Block Editor)

WordPress plugin Disable Gutenberg (SP Disable Block Editor) scored84%from 54 tests.

About plugin

  • Plugin page: sp-disable-block-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.0.3
  • WordPress version: 6.3.1
  • First release: Mar 11, 2019
  • Latest release: Mar 11, 2019
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: spoot1986 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /807 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.62MB] [CPU: ▼7.77ms] Passed 4 tests

An overview of server-side resources used by Disable Gutenberg (SP Disable Block Editor)
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.03 ▲0.63
Dashboard /wp-admin3.31 ▲0.0148.94 ▼5.91
Posts /wp-admin/edit.php3.36 ▲0.0051.87 ▲0.81
Add New Post /wp-admin/post-new.php3.41 ▼2.4861.52 ▼26.62
Media Library /wp-admin/upload.php3.23 ▲0.0042.06 ▲6.00

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Disable Gutenberg (SP Disable Block Editor)
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.67 ▲0.091.99 ▲0.3042.24 ▼0.61
Dashboard /wp-admin2,195 ▲185.63 ▲0.0385.53 ▼11.2843.76 ▲5.05
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.0241.18 ▲0.7437.76 ▼1.14
Add New Post /wp-admin/post-new.php3,103 ▲1,5777.72 ▼15.39201.07 ▼510.4172.73 ▲17.77
Media Library /wp-admin/upload.php1,397 ▼34.21 ▲0.03111.70 ▲3.2643.93 ▼3.88

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/sp-disable-block-editor/sp-disable-block-editor.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: disable gutenberg, gutenberg

sp-disable-block-editor/sp-disable-block-editor.php 85% from 13 tests

The main PHP script in "Disable Gutenberg (SP Disable Block Editor)" version 1.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected4 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12104

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
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 files were detected