84% blockeditor-fullscreen-mode-control

Code Review | Persistent block editor settings

WordPress plugin Persistent block editor settings scored84%from 54 tests.

About plugin

  • Plugin page: blockeditor-fulls...
  • Plugin version: 1.3.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.0
  • WordPress version: 6.3.1
  • First release: Mar 31, 2020
  • Latest release: May 24, 2022
  • Number of updates: 10
  • Update frequency: every 78.4 days
  • Top authors: Clorith (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /9,094 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.08ms] Passed 4 tests

Server-side resources used by Persistent block editor settings
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.26 ▼3.40
Dashboard /wp-admin3.35 ▲0.0545.07 ▼4.20
Posts /wp-admin/edit.php3.40 ▲0.0547.25 ▲0.71
Add New Post /wp-admin/post-new.php5.94 ▲0.0581.35 ▼5.41
Media Library /wp-admin/upload.php3.28 ▲0.0535.62 ▲3.42

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Persistent block editor settings
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.101.80 ▲0.0846.17 ▲0.94
Dashboard /wp-admin2,203 ▲155.83 ▲0.9793.38 ▼22.5140.17 ▼3.73
Posts /wp-admin/edit.php2,086 ▼31.99 ▼0.0636.01 ▲0.6630.73 ▼5.67
Add New Post /wp-admin/post-new.php1,547 ▲1418.19 ▼4.99743.66 ▲16.8456.50 ▲2.39
Media Library /wp-admin/upload.php1,388 ▼04.16 ▼0.04100.13 ▲0.1043.33 ▼0.16

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blockeditor-fullscreen-mode-control/includes/class-cbfm-rest-api.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/blockeditor-fullscreen-mode-control/includes/class-cbfm-profile.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blockeditor-fullscreen-mode-control/includes/class-cbfm-block-editor.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/blockeditor-fullscreen-mode-control/blockeditor-fullscreen-mode-control.php:14

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 on the user side

Optimizations

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

blockeditor-fullscreen-mode-control/blockeditor-fullscreen-mode-control.php Passed 13 tests

This is the main PHP file of "Persistent block editor settings" version 1.3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
66 characters long description:
Remember your editor settings across devices and editing sessions.

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 plugin259 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP44842215
JavaScript19144

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity6.33
▷ Minimum class complexity3.00
▷ Maximum class complexity11.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin