84% classic-editor

Code Review | Classic Editor

WordPress plugin Classic Editor scored84%from 54 tests.

About plugin

  • Plugin page: classic-editor
  • Plugin version: 1.6.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.2
  • WordPress version: 6.3.1
  • First release: Oct 24, 2017
  • Latest release: Aug 10, 2023
  • Number of updates: 89
  • Update frequency: every 23.9 days
  • Top authors: azaozz (100%)

Code review

54 tests

User reviews

1146 reviews

Install metrics

5,000,000+ active /53,685,053 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.59MB] [CPU: ▼12.90ms] Passed 4 tests

An overview of server-side resources used by Classic Editor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.58 ▲0.21
Dashboard /wp-admin3.32 ▲0.0250.92 ▼2.74
Posts /wp-admin/edit.php3.44 ▲0.0850.28 ▼5.77
Add New Post /wp-admin/post-new.php3.46 ▼2.4258.69 ▼43.30
Media Library /wp-admin/upload.php3.25 ▲0.0238.60 ▲0.68

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Classic Editor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.73 ▲0.381.65 ▼0.1646.08 ▼1.13
Dashboard /wp-admin2,195 ▲185.63 ▼0.0485.83 ▼4.9442.10 ▼2.15
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0135.87 ▼2.7337.18 ▲2.31
Add New Post /wp-admin/post-new.php3,103 ▲1,5757.70 ▼15.39196.19 ▼509.3371.87 ▲21.60
Media Library /wp-admin/upload.php1,397 ▼04.20 ▲0.01100.59 ▲0.6345.61 ▲4.39

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/classic-editor/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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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
6 plugin tags: gutenberg, disable, block editor, editor, disable gutenberg...

classic-editor/classic-editor.php 85% from 13 tests

The primary PHP file in "Classic Editor" version 1.6.3 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 154 characters long)
  • Domain Path: The domain path folder does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected978 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1160180637
Markdown1800320
JavaScript12021

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity134.00
▷ Minimum class complexity134.00
▷ Maximum class complexity134.00
Average method complexity4.69
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods36
▷ Static methods3597.22%
▷ Public methods2775.00%
▷ Protected methods00.00%
▷ Private methods925.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin