83% enable-customizer

Code Review | Enable Customizer for Full Site Editor & Block Themes

WordPress plugin Enable Customizer for Full Site Editor & Block Themes scored83%from 54 tests.

About plugin

  • Plugin page: enable-customizer
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.3
  • WordPress version: 6.3.1
  • First release: Aug 12, 2023
  • Latest release: Aug 13, 2023
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: heymehedi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /158 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: ▼8.20ms] Passed 4 tests

Analyzing server-side resources used by Enable Customizer for Full Site Editor & Block Themes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0043.23 ▼2.01
Dashboard /wp-admin3.31 ▲0.0060.63 ▲7.81
Posts /wp-admin/edit.php3.36 ▲0.0053.22 ▼5.91
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.20 ▼27.91
Media Library /wp-admin/upload.php3.23 ▲0.0038.67 ▲3.03

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 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

Enable Customizer for Full Site Editor & Block Themes: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.27 ▼0.042.01 ▼0.0346.14 ▲3.18
Dashboard /wp-admin2,198 ▲185.64 ▲0.0294.59 ▲4.6541.90 ▼2.23
Posts /wp-admin/edit.php2,100 ▼31.97 ▼0.0735.20 ▼5.4533.15 ▼5.74
Add New Post /wp-admin/post-new.php1,531 ▼023.03 ▲0.01694.40 ▲59.9854.12 ▲4.83
Media Library /wp-admin/upload.php1,400 ▼04.21 ▼0.07101.10 ▲2.5943.90 ▲0.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 detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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 fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/enable-customizer/enable-customizer.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed: The official readme.txt might help

enable-customizer/enable-customizer.php 85% from 13 tests

The principal PHP file in "Enable Customizer for Full Site Editor & Block Themes" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Git Repository: Please remove the Git repository from this plugin
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

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
No dangerous file extensions were detected3 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11102
Markdown1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin