90% editor-bridge

Code Review | Editor Bridge

WordPress plugin Editor Bridge scored90%from 54 tests.

About plugin

  • Plugin page: editor-bridge
  • Plugin version: 1.8.2
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 24, 2020
  • Latest release: Nov 22, 2023
  • Number of updates: 36
  • Update frequency: every 31.3 days
  • Top authors: thingsym (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /2,154 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Editor Bridge
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0233.54 ▼12.55
Dashboard /wp-admin3.32 ▲0.0248.27 ▼1.20
Posts /wp-admin/edit.php3.37 ▲0.0148.90 ▲0.91
Add New Post /wp-admin/post-new.php5.90 ▲0.0289.04 ▼6.50
Media Library /wp-admin/upload.php3.24 ▲0.0134.67 ▼1.39

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Editor Bridge
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5714.27 ▲0.041.92 ▼0.0142.87 ▼0.72
Dashboard /wp-admin2,198 ▲215.55 ▼0.1296.39 ▼3.2644.50 ▲3.40
Posts /wp-admin/edit.php2,100 ▼01.97 ▲0.0041.02 ▲0.6735.73 ▲0.58
Add New Post /wp-admin/post-new.php1,536 ▲1023.99 ▲0.97663.81 ▲38.1655.52 ▲0.63
Media Library /wp-admin/upload.php1,400 ▼34.18 ▼0.1294.59 ▼3.0741.90 ▼1.16

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 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
3 plugin tags: block, block editor, gutenberg

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

The main PHP script in "Editor Bridge" version 1.8.2 is automatically included on every request by WordPress
91 characters long description:
This WordPress plugin expands the functionality of core blocks and adds styles and formats.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin2,403 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
CSS697202,046
PO File1119137255
PHP327101101
JSON1001
JavaScript1010

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.36
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin