84% mrw-web-design-simple-tinymce

Code Review | MRW Simplified Editor

WordPress plugin MRW Simplified Editor scored84%from 54 tests.

About plugin

  • Plugin page: mrw-web-design-si...
  • Plugin version: 2.12.1
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4
  • WordPress version: 6.3.1
  • First release: Feb 12, 2015
  • Latest release: Nov 30, 2023
  • Number of updates: 58
  • Update frequency: every 55.4 days
  • Top authors: mrwweb (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /17,069 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: ▲1.59ms] Passed 4 tests

Analyzing server-side resources used by MRW Simplified Editor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0748.41 ▲10.20
Dashboard /wp-admin3.37 ▲0.0745.30 ▼2.99
Posts /wp-admin/edit.php3.42 ▲0.0748.38 ▲5.25
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.98 ▼0.11
Media Library /wp-admin/upload.php3.30 ▲0.0738.37 ▲4.22

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

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

Browser metrics Passed 4 tests

MRW Simplified Editor: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.36 ▲0.081.83 ▼0.0243.05 ▼1.56
Dashboard /wp-admin2,195 ▲215.66 ▼0.0691.34 ▼12.0438.19 ▼8.40
Posts /wp-admin/edit.php2,103 ▼01.94 ▼0.0741.03 ▼7.5536.57 ▲2.18
Add New Post /wp-admin/post-new.php1,692 ▲16621.69 ▼1.15678.16 ▲55.4751.17 ▼11.44
Media Library /wp-admin/upload.php1,394 ▲34.27 ▲0.05108.49 ▲10.9248.75 ▲6.36

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

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)
Everything seems fine, however this is by no means an exhaustive test

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
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mrw-web-design-simple-tinymce/inc/classic-editor.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mrw-web-design-simple-tinymce/inc/block-editor.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mrw-web-design-simple-tinymce/inc/classic-editor.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed: You can take inspiration from this readme.txt

mrw-web-design-simple-tinymce/mrwweb-simple-tinymce.php 92% from 13 tests

"MRW Simplified Editor" version 2.12.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mrw-web-design-simple-tinymce.php" instead of "mrwweb-simple-tinymce.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin573 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3107246443
CSS1265395
JavaScript1151335

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions14
▷ Named functions14100.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
No PNG images were found in this plugin