90% disable-block-editor-fullscreen-mode

Code Review | Disable Block Editor FullScreen mode

WordPress plugin Disable Block Editor FullScreen mode scored90%from 54 tests.

About plugin

  • Plugin page: disable-block-edi...
  • Plugin version: 2.6.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.4.1
  • WordPress version: 6.3.1
  • First release: Apr 2, 2020
  • Latest release: Nov 9, 2023
  • Number of updates: 42
  • Update frequency: every 31.3 days
  • Top authors: wptoolsdev (80.95%)ankitmaru (21.43%)

Code review

54 tests

User reviews

7 reviews

Install metrics

1,000+ active /23,232 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Disable Block Editor FullScreen mode
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0141.47 ▲1.90
Dashboard /wp-admin3.32 ▲0.0144.22 ▼5.34
Posts /wp-admin/edit.php3.37 ▲0.0149.65 ▲3.65
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.81 ▲3.42
Media Library /wp-admin/upload.php3.24 ▲0.0133.46 ▼0.90

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Disable Block Editor FullScreen mode
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲314.14 ▼0.211.69 ▼0.1937.75 ▼6.45
Dashboard /wp-admin2,198 ▲185.64 ▲0.0193.07 ▼0.4338.37 ▼6.28
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0740.98 ▲3.8535.79 ▲0.40
Add New Post /wp-admin/post-new.php1,541 ▲1523.21 ▼0.38674.03 ▼41.6464.09 ▲8.30
Media Library /wp-admin/upload.php1,400 ▲34.22 ▼0.0197.90 ▼2.8141.31 ▼0.08

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
No output text or server-side errors detected 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 96% 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
4 plugin tags: gutenberg editor, block editor, wordpress editor, gutenberg block editor

disable-block-editor-fullscreen-mode/disable-block-editor-fullscreen-mode.php 92% from 13 tests

The entry point to "Disable Block Editor FullScreen mode" version 2.6.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin37 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2103737

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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