90% wp-editor-widget

Code Review | WP Editor Widget

WordPress plugin WP Editor Widget scored90%from 54 tests.

About plugin

  • Plugin page: wp-editor-widget
  • Plugin version: 0.6.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-5.5.3
  • WordPress version: 6.3.1
  • First release: Jun 19, 2013
  • Latest release: Nov 8, 2020
  • Number of updates: 71
  • Update frequency: every 38.0 days
  • Top authors: feedmeastraycat (100%)

Code review

54 tests

User reviews

18 reviews

Install metrics

10,000+ active /147,085 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼5.95ms] Passed 4 tests

A check of server-side resources used by WP Editor Widget
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0745.55 ▲2.77
Dashboard /wp-admin3.36 ▲0.0645.33 ▼4.52
Posts /wp-admin/edit.php3.41 ▲0.0648.84 ▲0.03
Add New Post /wp-admin/post-new.php5.94 ▲0.0687.31 ▼22.06
Media Library /wp-admin/upload.php3.29 ▲0.0639.81 ▲4.41

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WP Editor Widget
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▲0.091.69 ▼0.0643.56 ▼0.29
Dashboard /wp-admin2,195 ▲185.53 ▼0.0186.55 ▼14.1939.34 ▼2.37
Posts /wp-admin/edit.php2,103 ▲31.99 ▼0.0234.96 ▼4.2138.31 ▲0.90
Add New Post /wp-admin/post-new.php1,526 ▼023.50 ▲0.64663.81 ▼21.7054.15 ▼19.74
Media Library /wp-admin/upload.php1,397 ▼34.19 ▼0.03106.16 ▲1.1047.37 ▲3.22

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • widget_wp_editor_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 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)
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: wysiwyg, wpml, rich text, widget, editor

wp-editor-widget/wp-editor-widget.php Passed 13 tests

The main PHP file in "WP Editor Widget" ver. 0.6.0 adds more information about the plugin and also serves as the entry point for this plugin
61 characters long description:
WP Editor Widget adds a WYSIWYG widget using the wp_editor().

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 detected387 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP25875163
PO File33030116
CSS12357
JavaScript1203051

PHP code Passed 2 tests

Analyzing 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.25
Average class complexity10.50
▷ Minimum class complexity3.00
▷ Maximum class complexity18.00
Average method complexity2.90
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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
There were not PNG files found in your plugin