84% editorplus

Code Review | Gutenberg Blocks Library & Toolkit - Editor Plus

WordPress plugin Gutenberg Blocks Library & Toolkit - Editor Plus scored84%from 54 tests.

About plugin

  • Plugin page: editorplus
  • Plugin version: 2.10.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4
  • WordPress version: 6.3.1
  • First release: Jun 19, 2020
  • Latest release: Nov 9, 2023
  • Number of updates: 65
  • Update frequency: every 19.1 days
  • Top authors: munirkamal (100%)

Code review

54 tests

User reviews

37 reviews

Install metrics

8,000+ active /206,618 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.35MB] [CPU: ▼7.22ms] Passed 4 tests

An overview of server-side resources used by Gutenberg Blocks Library & Toolkit - Editor Plus
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.84 ▲0.3840.28 ▼5.65
Dashboard /wp-admin3.64 ▲0.2947.47 ▼14.34
Posts /wp-admin/edit.php3.75 ▲0.4048.25 ▲2.15
Add New Post /wp-admin/post-new.php6.29 ▲0.4086.66 ▼7.41
Media Library /wp-admin/upload.php3.56 ▲0.3335.75 ▼1.49
Editor Plus /wp-admin/options-general.php?page=editor_plus3.5537.72

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Gutenberg Blocks Library & Toolkit - Editor Plus
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,951 ▲20414.13 ▼0.0922.26 ▲20.6840.28 ▼4.09
Dashboard /wp-admin2,196 ▲215.49 ▼0.1980.84 ▼36.5238.30 ▼7.27
Posts /wp-admin/edit.php2,107 ▲42.01 ▲0.0037.00 ▲0.4233.25 ▼2.49
Add New Post /wp-admin/post-new.php6,403 ▲4,87425.72 ▲2.461,003.49 ▲334.2935.44 ▼20.03
Media Library /wp-admin/upload.php1,398 ▼24.24 ▲0.11102.63 ▼8.4440.03 ▼9.36
Editor Plus /wp-admin/options-general.php?page=editor_plus1,12713.50255.0150.71

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 9× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/editorplus/editorplus.php:14
    • > PHP Warning
      require_once(EDPL_EDITORPLUS_PLUGIN_DIRincludes/blocks.php): failed to open stream: No such file or directory in wp-content/plugins/editorplus/includes/class-editorplus-styles-generator.php on line 8
    • > PHP Fatal error
      require_once(): Failed opening required 'EDPL_EDITORPLUS_PLUGIN_DIRincludes/blocks.php' (include_path='.:/usr/share/php') in wp-content/plugins/editorplus/includes/class-editorplus-styles-generator.php on line 8
    • > PHP Warning
      Use of undefined constant EDPL_EDITORPLUS_PLUGIN_DIR - assumed 'EDPL_EDITORPLUS_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/editorplus/assets/index.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/editorplus/blocks/index.php:3
    • > PHP Fatal error
      require_once(): Failed opening required 'EDPL_EDITORPLUS_PLUGIN_DIRincludes/utils.php' (include_path='.:/usr/share/php') in wp-content/plugins/editorplus/assets/index.php on line 8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/editorplus/extensions/icon-inserter/index.php:32
    • > PHP Warning
      Use of undefined constant EDPL_EDITORPLUS_PLUGIN_DIR - assumed 'EDPL_EDITORPLUS_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/editorplus/includes/class-editorplus-styles-generator.php on line 8
    • > PHP Warning
      require_once(EDPL_EDITORPLUS_PLUGIN_DIRincludes/utils.php): failed to open stream: No such file or directory in wp-content/plugins/editorplus/assets/index.php on line 8

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: blocks, gutenberg, block, pattern, gutenberg blocks...

editorplus/editorplus.php 92% from 13 tests

The main PHP file in "Gutenberg Blocks Library & Toolkit - Editor Plus" ver. 2.10.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin3,235 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP125245541,594
SVG1001,176
JavaScript113612418
XML10027
JSON20017
CSS3003

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.70
Average class complexity17.00
▷ Minimum class complexity8.00
▷ Maximum class complexity32.00
Average method complexity5.27
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods17
▷ Static methods15.88%
▷ Public methods1588.24%
▷ Protected methods00.00%
▷ Private methods211.76%
Functions52
▷ Named functions4382.69%
▷ Anonymous functions917.31%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ 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
PNG images were not found in this plugin