90% we-disable-fs

Code Review | Disable WordPress Block Editor Fullscreen Mode

WordPress plugin Disable WordPress Block Editor Fullscreen Mode scored90%from 54 tests.

About plugin

  • Plugin page: we-disable-fs
  • Plugin version: 1.0.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-5.9
  • WordPress version: 6.3.1
  • First release: May 12, 2020
  • Latest release: Feb 16, 2022
  • Number of updates: 8
  • Update frequency: every 80.8 days
  • Top authors: mwedepohl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /652 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
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼10.33ms] Passed 4 tests

A check of server-side resources used by Disable WordPress Block Editor Fullscreen Mode
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.43 ▲0.86
Dashboard /wp-admin3.31 ▼0.0344.48 ▼13.89
Posts /wp-admin/edit.php3.36 ▲0.0145.39 ▼4.06
Add New Post /wp-admin/post-new.php5.89 ▲0.0177.86 ▼22.38
Media Library /wp-admin/upload.php3.23 ▲0.0032.17 ▼0.99

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Disable WordPress Block Editor Fullscreen Mode
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.57 ▼0.781.88 ▼0.2640.04 ▼0.41
Dashboard /wp-admin2,206 ▲145.85 ▲0.88106.75 ▼5.5338.28 ▼3.24
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0335.91 ▼5.1034.47 ▼0.46
Add New Post /wp-admin/post-new.php1,550 ▲3123.46 ▲0.19661.33 ▲12.8572.45 ▲17.30
Media Library /wp-admin/upload.php1,388 ▲34.22 ▼0.1099.52 ▲4.6043.75 ▲2.28

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: 6 options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 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: disable, block editor, fullscreen

we-disable-fs/we-disable-fs.php Passed 13 tests

The main PHP file in "Disable WordPress Block Editor Fullscreen Mode" ver. 1.0.9 adds more information about the plugin and also serves as the entry point for this plugin
79 characters long description:
Disable the WordPress Block Editor Fullscreen Mode which is enabled by default.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected18 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2115518

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin