84% multiple-rich-editors

Code Review | Multiple Rich Editors

WordPress plugin Multiple Rich Editors scored84%from 54 tests.

About plugin

  • Plugin page: multiple-rich-edi...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.8.1
  • WordPress version: 6.3.1
  • First release: Mar 4, 2014
  • Latest release: Mar 4, 2014
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: nickohrn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,205 total downloads

Benchmarks

Plugin footprint 82% 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.02MB] [CPU: ▼6.12ms] Passed 4 tests

An overview of server-side resources used by Multiple Rich Editors
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.01 ▼1.95
Dashboard /wp-admin3.33 ▲0.0248.53 ▼5.28
Posts /wp-admin/edit.php3.38 ▲0.0249.15 ▼8.26
Add New Post /wp-admin/post-new.php5.91 ▲0.0294.36 ▼9.00
Media Library /wp-admin/upload.php3.25 ▲0.0238.32 ▲4.97

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
Please try to fix the following items
  • The plugin illegally modified 1 file (4.00KB) outside of "wp-content/plugins/multiple-rich-editors/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Multiple Rich Editors
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲2914.44 ▲0.131.74 ▼0.4539.89 ▼3.86
Dashboard /wp-admin2,221 ▲185.02 ▼0.8799.51 ▼5.2339.69 ▼3.23
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0540.94 ▼0.7535.70 ▼3.24
Add New Post /wp-admin/post-new.php1,526 ▼617.75 ▼5.39684.09 ▲11.3061.64 ▲8.75
Media Library /wp-admin/upload.php1,400 ▲34.25 ▲0.13112.05 ▲12.0948.68 ▲4.35

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% 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
Almost there! Just fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_editor() in wp-content/plugins/multiple-rich-editors/views/rich-editor.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/multiple-rich-editors/multiple-rich-editors.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
2 plugin tags: editor, admin

multiple-rich-editors/multiple-rich-editors.php Passed 13 tests

The principal PHP file in "Multiple Rich Editors" v. 1.0.0 is loaded by WordPress automatically on each request
75 characters long description:
Allows developers to quickly add multiple rich editors to any content type.

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
Success! There were no dangerous files found in this plugin113 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP34265113

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity26.00
▷ Minimum class complexity26.00
▷ Maximum class complexity26.00
Average method complexity3.50
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods10100.00%
▷ Public methods440.00%
▷ Protected methods00.00%
▷ Private methods660.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin