83% disable-fullscreen-mode

Code Review | Disable Fullscreen Editor Mode

WordPress plugin Disable Fullscreen Editor Mode scored83%from 54 tests.

About plugin

  • Plugin page: disable-fullscree...
  • Plugin version: 1.0.6.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Apr 18, 2020
  • Latest release: Oct 12, 2023
  • Number of updates: 23
  • Update frequency: every 55.3 days
  • Top authors: Litonice13 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,268 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.68MB] [CPU: ▲1,132.89ms] 50% from 4 tests

An overview of server-side resources used by Disable Fullscreen Editor Mode
Please take the time to fix the following items
  • CPU: Total CPU usage must kept under 500.00ms (currently 1,319.31ms on /wp-admin/themes.php?page=recommended-plugins)
  • Extra CPU: Try to keep extra CPU usage under 200.00ms (currently 1,132.89ms on /wp-admin/themes.php?page=recommended-plugins)
PageMemory (MB)CPU Time (ms)
Home /4.18 ▲0.71709.78 ▲672.55
Dashboard /wp-admin4.12 ▲0.821,568.64 ▲1,522.10
Posts /wp-admin/edit.php4.06 ▲0.701,343.73 ▲1,299.21
Add New Post /wp-admin/post-new.php6.54 ▲0.651,394.86 ▲1,299.26
Media Library /wp-admin/upload.php3.90 ▲0.661,292.43 ▲1,260.54
Recommended /wp-admin/themes.php?page=recommended-plugins4.011,319.31

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 41 new files
Database: no new tables, 13 new options
New WordPress options
jltdfsm_sheet_promo_data_hash
theysaidso_admin_options
disable_fullscreen_mode_version
widget_theysaidso_widget
db_upgraded
jltdfsm_activation_time
jltdfsm_notice_ask_for_rating
jltdfsm_notice_what_we_collect
widget_recent-comments
can_compress_scripts
...

Browser metrics Passed 4 tests

A check of browser resources used by Disable Fullscreen Editor Mode
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,920 ▲15914.55 ▼0.011.58 ▼0.3135.50 ▼5.06
Dashboard /wp-admin2,330 ▲1495.66 ▲0.0485.45 ▼12.5838.48 ▼4.33
Posts /wp-admin/edit.php2,208 ▲1082.17 ▲0.1937.47 ▲2.2232.26 ▼5.97
Add New Post /wp-admin/post-new.php1,641 ▲11523.42 ▲0.33576.38 ▼87.2074.44 ▲10.37
Media Library /wp-admin/upload.php1,502 ▲1024.20 ▼0.0094.84 ▼13.8343.36 ▼3.68
Recommended /wp-admin/themes.php?page=recommended-plugins1,0861.7328.8028.32

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 13 options in the database
    • disable_fullscreen_mode_version
    • jltdfsm_sheet_promo_data
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • jltdfsm_notice_subscribe
    • can_compress_scripts
    • jltdfsm_notice_ask_for_rating
    • jltdfsm_activation_time
    • jltdfsm_sheet_promo_data_hash
    • ...

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 no errors were found, this is by no means 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 take a closer look at the following
  • 8× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'JLTDFSM\\Inc\\Classes\otifications\\Model\\Popup' not found in wp-content/plugins/disable-fullscreen-mode/Inc/Classes/Notifications/Upgrade_Notice.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'JLTDFSM\\Inc\\Classes\otifications\\Model\otice' not found in wp-content/plugins/disable-fullscreen-mode/Inc/Classes/Notifications/Subscribe.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'JLTDFSM\\Libs\\Upgrader' not found in wp-content/plugins/disable-fullscreen-mode/Inc/Classes/Upgrade_Plugin.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'JLTDFSM\\Inc\\Classes\otifications\\Model\otice' not found in wp-content/plugins/disable-fullscreen-mode/Inc/Classes/Notifications/What_We_Collect.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/disable-fullscreen-mode/disable-fullscreen-mode.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'JLTDFSM\\Inc\\Classes\otifications\\Model\otice' not found in wp-content/plugins/disable-fullscreen-mode/Inc/Classes/Notifications/Ask_For_Rating.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'JLTDFSM\\Libs\\RowLinks' not found in wp-content/plugins/disable-fullscreen-mode/Inc/Classes/Row_Links.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'JLTDFSM\\Libs\\Recommended' not found in wp-content/plugins/disable-fullscreen-mode/Inc/Classes/Recommended_Plugins.php:12

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 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
4 plugin tags: fullscreen, gutenberg, hide fullscreen, disable fullscreen

disable-fullscreen-mode/disable-fullscreen-mode.php 85% from 13 tests

The primary PHP file in "Disable Fullscreen Editor Mode" version 1.0.6.2 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Domain Path: Prefix the domain path with a forward slash character ("/languages/")
  • Domain Path: The domain path should use only dashes and lowercase characters ("languages/")

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
Good job! No executable or dangerous file extensions detected3,699 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
PHP377411,4422,939
CSS211813606
JavaScript1158154

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity10.71
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.46
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces8
Interfaces0
Traits2
Classes26
▷ Abstract classes415.38%
▷ Concrete classes2284.62%
▷ Final classes14.55%
Methods189
▷ Static methods3216.93%
▷ Public methods18698.41%
▷ Protected methods10.53%
▷ Private methods21.06%
Functions9
▷ Named functions555.56%
▷ Anonymous functions444.44%
Constants16
▷ Global constants1593.75%
▷ Class constants16.25%
▷ Public constants1100.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
PNG images were not found in this plugin