84% stretch-block-editor

Code Review | Stretch Block Editor

WordPress plugin Stretch Block Editor scored 84% from 54 tests.

About plugin

  • Plugin page: stretch-block-editor
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.6.1
  • WordPress version: 6.3.1
  • First release: Feb 27, 2021
  • Latest release: Feb 27, 2021
  • Number of updates: 3
  • Update frequency: every 2.7 days
  • Top authors: stephanvent (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 365 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.45ms] Passed 4 tests

This is a short check of server-side resources used by Stretch Block Editor
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.05 ▼4.25
Dashboard /wp-admin3.32 ▲0.0147.94 ▼7.84
Posts /wp-admin/edit.php3.37 ▲0.0147.91 ▼1.66
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.31 ▼12.03
Media Library /wp-admin/upload.php3.24 ▲0.0136.17 ▲2.98
Stretch Block Editor /wp-admin/options-general.php?page=stretchblockeditor3.2133.03

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
stretchblockeditor_width
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Stretch Block Editor
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲7213.19 ▼1.191.87 ▼0.0437.93 ▼10.05
Dashboard /wp-admin2,210 ▲224.84 ▼1.07108.51 ▼4.7640.87 ▼5.41
Posts /wp-admin/edit.php2,099 ▲102.01 ▼0.0139.21 ▼3.3236.36 ▲2.62
Add New Post /wp-admin/post-new.php1,520 ▼1317.81 ▼5.43675.93 ▲67.2252.28 ▲3.21
Media Library /wp-admin/upload.php1,392 ▲74.23 ▲0.0995.84 ▼9.5139.13 ▼5.15
Stretch Block Editor /wp-admin/options-general.php?page=stretchblockeditor7862.0224.2929.46

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • stretchblockeditor_width
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

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
Even though no errors were found, this is by no means an exhaustive test

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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stretch-block-editor/stretchblockeditor.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: editor, gutenberg, block editor

stretch-block-editor/stretchblockeditor.php 85% from 13 tests

This is the main PHP file of "Stretch Block Editor" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("stretch-block-editor.php" instead of "stretchblockeditor.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin47 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP191647

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin