84% disable-full-site-editing

Code Review | Disable Full Site Editing

WordPress plugin Disable Full Site Editing scored84%from 54 tests.

About plugin

  • Plugin page: disable-full-site...
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Jun 6, 2021
  • Latest release: Apr 5, 2023
  • Number of updates: 24
  • Update frequency: every 27.9 days
  • Top authors: janw.oostendorp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /4,346 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Disable Full Site Editing
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.32 ▼3.32
Dashboard /wp-admin3.32 ▲0.0249.78 ▼3.03
Posts /wp-admin/edit.php3.37 ▲0.0248.02 ▼5.00
Add New Post /wp-admin/post-new.php5.90 ▲0.0290.18 ▼11.57
Media Library /wp-admin/upload.php3.24 ▲0.0239.59 ▲0.62
Disable Full site editing /wp-admin/tools.php?page=disable-fse3.2534.22

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Disable Full Site Editing: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.30 ▼0.281.70 ▼0.3154.52 ▲10.86
Dashboard /wp-admin2,193 ▲165.57 ▼0.1987.66 ▼4.0340.59 ▼3.48
Posts /wp-admin/edit.php2,101 ▲12.00 ▼0.0436.42 ▲0.1836.40 ▲2.34
Add New Post /wp-admin/post-new.php1,529 ▼2117.91 ▼5.21630.64 ▼56.1249.23 ▼3.89
Media Library /wp-admin/upload.php1,407 ▲74.20 ▼0.0598.96 ▼17.3443.12 ▼7.39
Disable Full site editing /wp-admin/tools.php?page=disable-fse8512.0424.4833.81

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_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

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)
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
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Disable_FSE\\plugin_dir_path() in wp-content/plugins/disable-full-site-editing/disable-fse.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/disable-full-site-editing/app/template/settings-page.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/disable-full-site-editing/app/template/on-off-switch.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: ful-site-edit

disable-full-site-editing/disable-fse.php 85% from 13 tests

This is the main PHP file of "Disable Full Site Editing" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("disable-full-site-editing.php" instead of "disable-fse.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected283 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP660115258
Bourne Shell10125

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity10.33
▷ Minimum class complexity3.00
▷ Maximum class complexity23.00
Average method complexity5.67
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods8
▷ Static methods8100.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants5
▷ Global constants5100.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