78% classic-editor-plus

Code Review | Classic Editor Plus - WordPress Classic Editor plugin by Felix

WordPress plugin Classic Editor Plus - WordPress Classic Editor plugin by Felix scored78%from 54 tests.

About plugin

  • Plugin page: classic-editor-plus
  • Plugin version: 1.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 25, 2020
  • Latest release: Jan 26, 2023
  • Number of updates: 50
  • Update frequency: every 21.3 days
  • Top authors: devfelixmoira (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

800+ active /15,314 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.61MB] [CPU: ▼14.78ms] Passed 4 tests

A check of server-side resources used by Classic Editor Plus - WordPress Classic Editor plugin by Felix
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.76 ▲4.36
Dashboard /wp-admin3.33 ▼0.0244.22 ▼15.43
Posts /wp-admin/edit.php3.38 ▲0.0247.75 ▼1.04
Add New Post /wp-admin/post-new.php3.40 ▼2.4861.83 ▼47.00
Media Library /wp-admin/upload.php3.25 ▲0.0240.13 ▲5.59

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Classic Editor Plus - WordPress Classic Editor plugin by Felix
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7014.44 ▲0.071.68 ▲0.0743.21 ▲0.35
Dashboard /wp-admin2,222 ▲304.86 ▼0.07107.77 ▼0.4841.35 ▼1.29
Posts /wp-admin/edit.php2,105 ▲162.03 ▲0.0238.99 ▼0.9335.65 ▼0.42
Add New Post /wp-admin/post-new.php3,110 ▲1,5737.72 ▼15.43199.72 ▼451.6171.45 ▲16.18
Media Library /wp-admin/upload.php1,407 ▲194.18 ▲0.00103.32 ▼2.0944.21 ▼2.20

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/classic-editor-plus/classic-editor.php
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function YCE\\add_action() in wp-content/plugins/classic-editor-plus/classes/Menu.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function YCE\\add_action() in wp-content/plugins/classic-editor-plus/classes/Actions.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'YCE_Classic_Editor' not found in wp-content/plugins/classic-editor-plus/views/mainMenu.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/classic-editor-plus/classes/Css.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function yce\\admin_url() in wp-content/plugins/classic-editor-plus/config.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% 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
No plugin tags provided

classic-editor-plus/classic-editor.php 77% from 13 tests

This is the main PHP file of "Classic Editor Plus - WordPress Classic Editor plugin by Felix" version 1.1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 159 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("classic-editor-plus.php" instead of "classic-editor.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin10,571 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
CSS65601029,375
PHP6178162855
Markdown1800320
JavaScript12021

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity27.80
▷ Minimum class complexity1.00
▷ Maximum class complexity131.00
Average method complexity3.58
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods52
▷ Static methods3975.00%
▷ Public methods4280.77%
▷ Protected methods00.00%
▷ Private methods1019.23%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin