84% enable-classic-editor

Code Review | Enable Classic Editor & Widgets

WordPress plugin Enable Classic Editor & Widgets scored84%from 54 tests.

About plugin

  • Plugin page: enable-classic-ed...
  • Plugin version: 2.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4
  • WordPress version: 6.3.1
  • First release: Nov 20, 2019
  • Latest release: Nov 23, 2023
  • Number of updates: 44
  • Update frequency: every 33.3 days
  • Top authors: hailhost (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

3,000+ active /47,978 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.63MB] [CPU: ▼9.59ms] Passed 4 tests

A check of server-side resources used by Enable Classic Editor & Widgets
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0044.64 ▲2.72
Dashboard /wp-admin3.31 ▼0.0449.63 ▼13.61
Posts /wp-admin/edit.php3.36 ▲0.0050.32 ▲6.51
Add New Post /wp-admin/post-new.php3.39 ▼2.5059.27 ▼33.98
Media Library /wp-admin/upload.php3.24 ▲0.0043.01 ▲9.43

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Enable Classic Editor & Widgets
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲4314.69 ▲0.421.70 ▼0.0941.22 ▼2.47
Dashboard /wp-admin2,198 ▲185.63 ▲0.1191.50 ▼6.3938.23 ▼5.44
Posts /wp-admin/edit.php2,100 ▼31.97 ▼0.0038.06 ▼0.0335.65 ▼4.47
Add New Post /wp-admin/post-new.php3,102 ▲1,5717.64 ▼15.35199.59 ▼451.0270.04 ▲20.13
Media Library /wp-admin/upload.php1,397 ▼34.17 ▼0.05101.88 ▲2.0842.66 ▲1.64

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/enable-classic-editor/enable-classic-editor.php

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)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: disable gutenberg, gutenberg, enable classic editor, block editor, editor...

enable-classic-editor/enable-classic-editor.php Passed 13 tests

"Enable Classic Editor & Widgets" version 2.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
72 characters long description:
A simple & lightweight plugin to enable the classic editor on WordPress.

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

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin