89% customizer-ex

Code Review | Customizer EX

WordPress plugin Customizer EX scored89%from 54 tests.

About plugin

  • Plugin page: customizer-ex
  • Plugin version: 1.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-5.6
  • WordPress version: 6.3.1
  • First release: Sep 9, 2019
  • Latest release: Feb 21, 2021
  • Number of updates: 5
  • Update frequency: every 106.4 days
  • Top authors: keksus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /545 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Customizer EX
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.78 ▼1.36
Dashboard /wp-admin3.32 ▲0.0145.23 ▼2.35
Posts /wp-admin/edit.php3.37 ▲0.0146.75 ▼3.72
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.79 ▼20.97
Media Library /wp-admin/upload.php3.24 ▲0.0135.84 ▲2.18
Customizer EX /wp-admin/options-general.php?page=cs_options_group3.2131.10

Server storage [IO: ▲0.01MB] [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: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
cst
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Customizer EX: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲7513.62 ▼0.671.72 ▲0.0743.88 ▲2.09
Dashboard /wp-admin2,210 ▲226.06 ▲1.1997.89 ▼5.1638.88 ▼10.14
Posts /wp-admin/edit.php2,090 ▲12.01 ▼0.0133.73 ▼5.8538.99 ▲0.84
Add New Post /wp-admin/post-new.php1,545 ▲218.23 ▲0.22624.01 ▲21.8156.53 ▲1.34
Media Library /wp-admin/upload.php1,395 ▲44.17 ▼0.0797.00 ▼2.5642.96 ▲0.19
Customizer EX /wp-admin/options-general.php?page=cs_options_group7942.0624.7827.56

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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 uses markdown syntax to describe your plugin to the world
5 plugin tags: export, customizer, customizer export, import, customizer import

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

"Customizer EX" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Domain Path: The domain path folder does not exist ("/languages/")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin175 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP12419161
CSS10014

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected