89% enable-default-editor

Code Review | Enable Default Editor

WordPress plugin Enable Default Editor scored89%from 54 tests.

About plugin

  • Plugin page: enable-default-ed...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.2
  • WordPress version: 6.3.1
  • First release: Aug 19, 2019
  • Latest release: Aug 19, 2019
  • Number of updates: 10
  • Update frequency: every 0.1 days
  • Top authors: trustcoder1 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /2,826 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.63MB] [CPU: ▼13.56ms] Passed 4 tests

A check of server-side resources used by Enable Default Editor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0038.21 ▼2.01
Dashboard /wp-admin3.31 ▼0.0445.02 ▼14.34
Posts /wp-admin/edit.php3.36 ▲0.0051.27 ▲3.82
Add New Post /wp-admin/post-new.php3.39 ▼2.5059.55 ▼39.63
Media Library /wp-admin/upload.php3.23 ▲0.0036.20 ▲1.73

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Enable Default Editor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.24 ▼1.051.64 ▼0.4242.49 ▲0.54
Dashboard /wp-admin2,209 ▲215.82 ▼0.0893.86 ▼3.7137.78 ▼5.09
Posts /wp-admin/edit.php2,092 ▲32.04 ▼0.0138.47 ▲1.0434.58 ▲2.64
Add New Post /wp-admin/post-new.php3,088 ▲1,5467.70 ▼10.70197.55 ▼423.0072.45 ▲16.09
Media Library /wp-admin/upload.php1,391 ▼04.23 ▲0.0694.60 ▼4.8041.81 ▼5.29

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
These attributes need your attention: You can look at the official readme.txt

enable-default-editor/index.php 85% from 13 tests

"Enable Default Editor" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("enable-default-editor.php" instead of "index.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
There were no executable files found in this plugin15 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP394215

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 1.08MB with 0.64MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png2.05KB0.97KB▼ 52.36%
assets/screenshot-1.png946.03KB292.70KB▼ 69.06%
assets/banner-772x250.png8.31KB4.78KB▼ 42.51%
assets/icon-256x256.png1.88KB0.59KB▼ 68.43%
assets/Screenshot-2.png146.19KB51.83KB▼ 64.55%