89% safe-block-editor

Code Review | Safe Block Editor by WPMarmite

WordPress plugin Safe Block Editor by WPMarmite scored89%from 54 tests.

About plugin

  • Plugin page: safe-block-editor
  • Plugin version: 1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-5.8
  • WordPress version: 6.3.1
  • First release: Jun 3, 2020
  • Latest release: Aug 25, 2021
  • Number of updates: 5
  • Update frequency: every 89.6 days
  • Top authors: modernplugins (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /997 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

A check of server-side resources used by Safe Block Editor by WPMarmite
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.45 ▼0.0146.49 ▲4.07
Dashboard /wp-admin3.30 ▼0.0152.79 ▲0.86
Posts /wp-admin/edit.php3.35 ▼0.0148.50 ▲0.97
Add New Post /wp-admin/post-new.php5.87 ▼0.0286.83 ▼8.57
Media Library /wp-admin/upload.php3.22 ▼0.0135.92 ▼0.72

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

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

Browser metrics Passed 4 tests

Safe Block Editor by WPMarmite: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲3314.20 ▼0.191.75 ▼0.5544.69 ▲0.61
Dashboard /wp-admin2,228 ▲515.67 ▲0.0987.03 ▼1.6640.50 ▼2.89
Posts /wp-admin/edit.php2,131 ▲282.15 ▲0.1235.74 ▼2.1233.80 ▼2.04
Add New Post /wp-admin/post-new.php1,558 ▲1323.14 ▲0.07639.45 ▼41.4155.45 ▼0.55
Media Library /wp-admin/upload.php1,433 ▲334.29 ▲0.18101.68 ▼10.6843.35 ▼4.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: block editor, blocks, editor

safe-block-editor/safe-block-editor.php 77% from 13 tests

"Safe Block Editor by WPMarmite" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Requires PHP: The required version number did not match the one declared in readme.txt ("5.6" instead of "7.0")
  • Domain Path: The domain path should use only dashes and lowercase characters ("languages/")
  • Domain Path: Prefix the domain path with a forward slash character ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin188 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP23278157
JavaScript17627
CSS1144

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG images were found in this plugin