89% editor-block-outline

Code Review | Editor Block Outline

WordPress plugin Editor Block Outline scored89%from 54 tests.

About plugin

  • Plugin page: editor-block-outline
  • Plugin version: 1.3.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 23, 2020
  • Latest release: Mar 16, 2023
  • Number of updates: 31
  • Update frequency: every 26.3 days
  • Top authors: khr2003 (100%)

Code review

54 tests

User reviews

16 reviews

Install metrics

1,000+ active /16,227 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

This is a short check of server-side resources used by Editor Block Outline
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0941.76 ▼2.88
Dashboard /wp-admin3.39 ▲0.0448.57 ▼16.03
Posts /wp-admin/edit.php3.44 ▲0.0849.10 ▼7.63
Add New Post /wp-admin/post-new.php5.92 ▲0.0490.43 ▼13.29
Media Library /wp-admin/upload.php3.31 ▲0.0837.07 ▲1.26

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

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

Browser metrics Passed 4 tests

Editor Block Outline: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▲0.061.66 ▼0.3644.72 ▼7.52
Dashboard /wp-admin2,209 ▲184.86 ▼1.04100.54 ▼5.3440.06 ▼1.79
Posts /wp-admin/edit.php2,092 ▼02.02 ▲0.0239.96 ▼8.0037.32 ▼0.18
Add New Post /wp-admin/post-new.php1,738 ▲20522.73 ▼0.42651.88 ▼52.7938.21 ▼18.75
Media Library /wp-admin/upload.php1,379 ▼94.23 ▲0.02101.58 ▼12.4043.32 ▼8.28

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: outline, editor, layout, gutenberg, blocks

editor-block-outline/outline.php 85% from 13 tests

The main PHP script in "Editor Block Outline" version 1.3.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("editor-block-outline.php" instead of "outline.php")

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 detected1,047 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1611291598
PHP34267261
Sass1167187
CSS1001

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity9.00
▷ Minimum class complexity3.00
▷ Maximum class complexity15.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods675.00%
▷ Protected methods00.00%
▷ Private methods225.00%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected