68% modern-editor

Code Review | Modern Editor

WordPress plugin Modern Editor scored68%from 54 tests.

About plugin

  • Plugin page: modern-editor
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Jul 30, 2020
  • Latest release: Jul 30, 2020
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: typop (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /540 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼1.59MB] [CPU: ▼49.33ms] Passed 4 tests

This is a short check of server-side resources used by Modern Editor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.40 ▼1.0610.20 ▼33.75
Dashboard /wp-admin2.41 ▼0.8911.44 ▼34.83
Posts /wp-admin/edit.php2.41 ▼0.9410.94 ▼34.92
Add New Post /wp-admin/post-new.php2.41 ▼3.4710.59 ▼93.83
Media Library /wp-admin/upload.php2.41 ▼0.8110.97 ▼22.80
Modern Editor /wp-admin/options-general.php?page=modern_editor2.4212.82

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Modern Editor: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.21 ▼1.081.71 ▲0.0544.23 ▲3.79
Dashboard /wp-admin2,210 ▲185.83 ▲0.91104.37 ▼3.8342.17 ▼1.51
Posts /wp-admin/edit.php2,093 ▲72.00 ▼0.0633.90 ▼1.7837.32 ▲5.24
Add New Post /wp-admin/post-new.php1,531 ▲123.38 ▲5.24673.45 ▲70.6554.16 ▲2.83
Media Library /wp-admin/upload.php1,395 ▲74.16 ▼0.0193.67 ▼0.8942.98 ▼0.03
Modern Editor /wp-admin/options-general.php?page=modern_editor7902.1824.2825.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/modern-editor/mui.php+24
    Trying to access array offset on value of type null
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=modern_editor
    • > Notice in wp-content/plugins/modern-editor/mui.php+24
    Trying to access array offset on value of type null

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/modern-editor/mui.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (https://www.typop.net/moe/save.png), #2 (https://www.typop.net/moe/inspector.png), #3 (https://www.typop.net/moe/scroll.png)
You can take inspiration from this readme.txt

modern-editor/mui.php 92% from 13 tests

The main file in "Modern Editor" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("modern-editor.php" instead of "mui.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected668 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS17144355
JavaScript12612177
PHP14026136

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.48
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected