68% minimalist-editor

Code Review | Minimalist editor

WordPress plugin Minimalist editor scored68%from 54 tests.

About plugin

  • Plugin page: minimalist-editor
  • Plugin version: 1.04
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.8
  • WordPress version: 6.3.1
  • First release: Sep 29, 2018
  • Latest release: Oct 21, 2018
  • Number of updates: 11
  • Update frequency: every 2.6 days
  • Top authors: oldflattop (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /606 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.91MB] [CPU: ▼30.79ms] Passed 4 tests

This is a short check of server-side resources used by Minimalist editor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.91 ▼1.22
Dashboard /wp-admin3.03 ▼0.2822.33 ▼24.50
Posts /wp-admin/edit.php3.03 ▼0.3321.49 ▼21.79
Add New Post /wp-admin/post-new.php3.03 ▼2.8623.23 ▼66.53
Media Library /wp-admin/upload.php3.03 ▼0.2023.06 ▼10.32
Minimalist Editor /wp-admin/themes.php?page=minimalist-editor3.0323.67

Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Minimalist editor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,811 ▲6513.63 ▼0.741.60 ▼0.0140.63 ▲0.27
Dashboard /wp-admin2,217 ▲294.88 ▼0.93107.85 ▲7.9539.50 ▲1.08
Posts /wp-admin/edit.php2,103 ▲142.04 ▼0.0140.60 ▲6.6834.27 ▼0.52
Add New Post /wp-admin/post-new.php1,549 ▲2823.53 ▲0.34660.56 ▲9.9859.61 ▲0.46
Media Library /wp-admin/upload.php1,396 ▲114.24 ▲0.0694.11 ▲0.2542.35 ▲0.79
Minimalist Editor /wp-admin/themes.php?page=minimalist-editor7981.8525.8026.09

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5905
    Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/themes.php?page=minimalist-editor
    • > User notice in wp-includes/functions.php+5905
    Function WP_Scripts::localize was called incorrectly. The $l10n parameter must be an array. To pass arbitrary data to scripts, use the wp_add_inline_script() function instead. Please see Debugging in WordPress for more information. (This message was added in version 5.7.0.)

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/minimalist-editor/minimalist-editor.php:24

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: minimalist, minimal, editor, distraction free, writing

minimalist-editor/minimalist-editor.php Passed 13 tests

Analyzing the main PHP file in "Minimalist editor" version 1.04
71 characters long description:
A minimalist Distraction Free Writing mode for the default text editor.

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
Everything looks great! No dangerous files found in this plugin238 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP1261694
CSS224091
JavaScript213953

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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