90% disable-classic-editor-and-widget

Code Review | Disable Classic Editor and Widget

WordPress plugin Disable Classic Editor and Widget scored90%from 54 tests.

About plugin

  • Plugin page: disable-classic-e...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.6.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0-6.3
  • WordPress version: 6.3.1
  • First release: Apr 21, 2022
  • Latest release: Oct 10, 2023
  • Number of updates: 5
  • Update frequency: every 107.4 days
  • Top authors: faridmia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /360 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

Analyzing server-side resources used by Disable Classic Editor and Widget
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.44 ▼5.76
Dashboard /wp-admin3.31 ▲0.0147.99 ▼7.90
Posts /wp-admin/edit.php3.36 ▲0.0150.47 ▲1.63
Add New Post /wp-admin/post-new.php3.39 ▼2.4960.92 ▼30.04
Media Library /wp-admin/upload.php3.23 ▲0.0139.07 ▼1.06

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Disable Classic Editor and Widget
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.29 ▼1.501.65 ▼0.5741.00 ▼2.86
Dashboard /wp-admin2,206 ▲185.86 ▲0.94102.38 ▼4.2042.52 ▲0.79
Posts /wp-admin/edit.php2,086 ▼61.99 ▼0.0240.03 ▲1.1237.76 ▲3.06
Add New Post /wp-admin/post-new.php3,088 ▲1,5677.72 ▼15.55205.73 ▼492.8873.85 ▲10.92
Media Library /wp-admin/upload.php1,391 ▲34.22 ▲0.09106.08 ▼11.3346.29 ▼1.86

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: remove gutenberg, block-editor, disable gutenberg, editor, classic widget...

disable-classic-editor-and-widget/disable-classic-editor-and-widget.php Passed 13 tests

"Disable Classic Editor and Widget" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
69 characters long description:
This plugin disables the Gutenberg Editor and Gutenberg widget block.

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
Success! There were no dangerous files found in this plugin23 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP181523

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for 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.17
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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