73% default-classic-editor

Code Review | Default Classic Editor

WordPress plugin Default Classic Editor scored 73% from 54 tests.

About plugin

  • Plugin page: default-classic-e...
  • Plugin version: 0.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.2
  • WordPress version: 6.3.1
  • First release: Aug 22, 2019
  • Latest release: Aug 27, 2019
  • Number of updates: 15
  • Update frequency: every 0.3 days
  • Top authors: p4wparamjeet (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active / 1,639 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.79MB] [CPU: ▼30.99ms] Passed 4 tests

Analyzing server-side resources used by Default Classic Editor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1438.27 ▼4.04
Dashboard /wp-admin3.15 ▼0.1624.58 ▼25.85
Posts /wp-admin/edit.php3.15 ▼0.2127.80 ▼19.14
Add New Post /wp-admin/post-new.php3.15 ▼2.7427.03 ▼70.23
Media Library /wp-admin/upload.php3.15 ▼0.0825.55 ▼8.73

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Default Classic Editor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.64 ▼0.731.74 ▲0.1245.46 ▲3.20
Dashboard /wp-admin2,206 ▲185.83 ▲0.9495.39 ▼20.5837.48 ▼9.57
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0139.82 ▲4.8233.82 ▲2.61
Add New Post /wp-admin/post-new.php3,094 ▲1,5597.68 ▼15.34188.96 ▼489.3870.43 ▲17.59
Media Library /wp-admin/upload.php1,391 ▲64.19 ▼0.0093.65 ▼6.7341.40 ▼4.91

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5453
    Function add_option_whitelist is deprecated since version 5.5.0! Use add_allowed_options() instead.
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/default-classic-editor/default-classic-editor.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Admin settings on the Settings -> Writing screen.), #2 (User settings on the Profile screen. Visible when the users are allowed to switch editors.), #3 ("Action links" to choose alternative editor. Visible when the users are allowed to switch editors.), #4 (Link to switch to the Block Editor while editing a post in the Default Classic Editor. Visible when the users are allowed to switch editors.), #5 (Link to switch to the Default Classic Editor while editing a post in the Block Editor. Visible when the users are allowed to switch editors.), #6 (Network settings to select the default editor for the network and allow site admins to change it.), #7 (The "Switch to Default Classic Editor" link.)
Please take inspiration from this readme.txt

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

The main PHP file in "Default Classic Editor" ver. 0.0.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 162 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin956 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1155171615
Markdown1800320
JavaScript12021

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity129.00
▷ Minimum class complexity129.00
▷ Maximum class complexity129.00
Average method complexity4.56
▷ 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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.12MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-6.png4.64KB4.00KB▼ 13.76%
screenshot-1.png29.23KB18.38KB▼ 37.13%
screenshot-5.png3.09KB2.61KB▼ 15.50%
screenshot-7.png36.65KB19.91KB▼ 45.67%
screenshot-2.png23.93KB15.68KB▼ 34.44%