90% disable-wp-widget-block-editor

Code Review | Disable Widget Block Editor

WordPress plugin Disable Widget Block Editor scored90%from 54 tests.

About plugin

  • Plugin page: disable-wp-widget...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-5.9.1
  • WordPress version: 6.3.1
  • First release: Feb 26, 2022
  • Latest release: Nov 25, 2022
  • Number of updates: 11
  • Update frequency: every 26.3 days
  • Top authors: xmic (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /826 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.53ms] Passed 4 tests

An overview of server-side resources used by Disable Widget Block Editor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0041.36 ▼0.47
Dashboard /wp-admin3.31 ▲0.0146.83 ▼10.56
Posts /wp-admin/edit.php3.36 ▲0.0050.67 ▲3.89
Add New Post /wp-admin/post-new.php5.89 ▲0.0085.53 ▼12.63
Media Library /wp-admin/upload.php3.23 ▲0.0036.61 ▲1.55

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Disable Widget Block Editor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.36 ▲0.071.66 ▼0.1039.91 ▼3.98
Dashboard /wp-admin2,198 ▲245.55 ▼0.0582.92 ▼25.1339.51 ▼2.86
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0837.60 ▼2.6034.60 ▲0.15
Add New Post /wp-admin/post-new.php1,526 ▼023.28 ▲0.25616.82 ▼89.2555.21 ▲4.96
Media Library /wp-admin/upload.php1,400 ▼04.21 ▲0.0199.89 ▼8.8243.32 ▲0.54

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however 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 smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: editor, block, disable, widget, gutenberg

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

This is the main PHP file of "Disable Widget Block Editor" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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 detected6 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14306

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin