79% add-customizer

Code Review | Add Customizer

WordPress plugin Add Customizer scored79%from 54 tests.

About plugin

  • Plugin page: add-customizer
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.1
  • WordPress version: 6.3.1
  • First release: Aug 1, 2022
  • Latest release: Nov 11, 2022
  • Number of updates: 4
  • Update frequency: every 30.3 days
  • Top authors: kcor555 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /724 total downloads


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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼3.39ms] Passed 4 tests

A check of server-side resources used by Add Customizer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0040.61 ▲1.75
Dashboard /wp-admin3.31 ▲0.0046.05 ▼6.67
Posts /wp-admin/edit.php3.36 ▲0.0042.96 ▼2.30
Add New Post /wp-admin/post-new.php5.89 ▲0.0081.47 ▼5.67
Media Library /wp-admin/upload.php3.23 ▲0.0035.29 ▲1.09
Customizer /wp-admin/customize.php5.93183.69

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

An overview of browser requirements for Add Customizer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.35 ▼0.021.71 ▼0.0344.07 ▼0.77
Dashboard /wp-admin2,196 ▲225.51 ▼0.0386.14 ▼18.9841.54 ▼2.64
Posts /wp-admin/edit.php2,104 ▲41.99 ▼0.0234.34 ▼1.7231.76 ▼1.62
Add New Post /wp-admin/post-new.php1,529 ▲123.39 ▲0.24587.89 ▼103.3556.74 ▲0.45
Media Library /wp-admin/upload.php1,404 ▲44.19 ▼0.0096.06 ▲2.7642.97 ▼2.44
Customizer /wp-admin/customize.php7,55222.25518.15129.17

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested

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 server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/add-customizer/add-customizer.php:15

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/customize.php
    • > Security (warning) in unknown
    /?customize_changeset_uuid=450ecfca-b0e8-4ddd-bcb2-340960c1f955&customize_theme=twentytwentyone&customize_messenger_channel=preview-0 - An iframe which has both allow-scripts and allow-same-origin for its sandbox attribute can escape its sandboxing.


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: customizer, customize, appearance menu, appearance

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

"Add Customizer" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
54 characters long description:
Adds the customizer link in the admin appearance menu.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin21 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions1100.00%
▷ 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