90% easy-customizer

Code Review | Easy Customizer - Add Customize sub menu under Themes menu on block based themes

WordPress plugin Easy Customizer - Add Customize sub menu under Themes menu on block based themes scored90%from 54 tests.

About plugin

  • Plugin page: easy-customizer
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.1
  • WordPress version: 6.3.1
  • First release: Nov 3, 2022
  • Latest release: Nov 3, 2022
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: matrixaddons (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /775 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.09MB] [CPU: ▼3.70ms] Passed 4 tests

An overview of server-side resources used by Easy Customizer - Add Customize sub menu under Themes menu on block based themes
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0841.29 ▼4.20
Dashboard /wp-admin3.40 ▲0.0948.65 ▲2.40
Posts /wp-admin/edit.php3.51 ▲0.1546.45 ▼1.50
Add New Post /wp-admin/post-new.php5.98 ▲0.0992.87 ▼5.54
Media Library /wp-admin/upload.php3.32 ▲0.0934.71 ▼3.57

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Easy Customizer - Add Customize sub menu under Themes menu on block based themes
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.27 ▼1.124.46 ▲2.6443.80 ▲4.56
Dashboard /wp-admin2,206 ▲185.84 ▲0.82101.79 ▼4.2241.11 ▼1.78
Posts /wp-admin/edit.php2,086 ▼32.04 ▲0.0436.35 ▼8.0931.40 ▼4.21
Add New Post /wp-admin/post-new.php1,542 ▲2218.53 ▼4.62605.71 ▼67.8650.77 ▼1.93
Media Library /wp-admin/upload.php1,388 ▼34.23 ▲0.0497.46 ▼11.0140.94 ▼3.23

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

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: customizer, block themes

easy-customizer/easy-customizer.php Passed 13 tests

The main PHP script in "Easy Customizer - Add Customize sub menu under Themes menu on block based themes" version 1.0.1 is automatically included on every request by WordPress
62 characters long description:
Add Customize sub menu under Themes menu on block based themes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin757 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP14186414752
JSON1005

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity16.71
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.96
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes228.57%
Methods57
▷ Static methods2136.84%
▷ Public methods5291.23%
▷ Protected methods23.51%
▷ Private methods35.26%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants8
▷ Global constants8100.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