83% fullscreen-mode-b-gone

Code Review | Fullscreen mode B gone

WordPress plugin Fullscreen mode B gone scored83%from 54 tests.

About plugin

  • Plugin page: fullscreen-mode-b...
  • Plugin version: 1.06
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Mar 31, 2021
  • Latest release: Nov 16, 2022
  • Number of updates: 17
  • Update frequency: every 35.0 days
  • Top authors: jonkastonka (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

500+ active /2,994 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Analyzing server-side resources used by Fullscreen mode B gone
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.24 ▼2.66
Dashboard /wp-admin3.31 ▲0.0147.72 ▲1.30
Posts /wp-admin/edit.php3.36 ▲0.0147.49 ▼1.97
Add New Post /wp-admin/post-new.php5.91 ▲0.0377.91 ▼7.21
Media Library /wp-admin/upload.php3.23 ▲0.0133.33 ▼1.82

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

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

Browser metrics Passed 4 tests

Fullscreen mode B gone: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.61 ▼0.621.78 ▼0.0838.45 ▼8.35
Dashboard /wp-admin2,210 ▲194.89 ▼0.02107.94 ▲2.2841.10 ▼1.08
Posts /wp-admin/edit.php2,093 ▲42.03 ▲0.0339.82 ▲2.7436.22 ▲1.27
Add New Post /wp-admin/post-new.php1,530 ▼423.32 ▲0.20659.90 ▼37.2667.44 ▼4.63
Media Library /wp-admin/upload.php1,386 ▼54.22 ▲0.0494.75 ▼13.0542.57 ▼3.89

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/fullscreen-mode-b-gone/fullscreen-mode-b-gone.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: fullscreen mode, gutenberg, block editor, fullscreen

fullscreen-mode-b-gone/fullscreen-mode-b-gone.php 77% from 13 tests

This is the main PHP file of "Fullscreen mode B gone" version 1.06, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Domain Path: The domain path folder was not found ("/languages")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Description: Please don't use more than 140 characters for the plugin description (currently 145 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin35 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP131025
JavaScript1108
Bourne Shell1012
CSS1110

PHP code Passed 2 tests

A brief analysis 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.25
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin