79% customizer-reset

Code Review | Customizer Reset - Export & Import

WordPress plugin Customizer Reset - Export & Import scored79%from 54 tests.

About plugin

  • Plugin page: customizer-reset
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4
  • WordPress version: 6.3.1
  • First release: Dec 4, 2019
  • Latest release: Nov 30, 2023
  • Number of updates: 25
  • Update frequency: every 58.2 days
  • Top authors: davidvongries (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

1,000+ active /19,482 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
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼3.40ms] Passed 4 tests

This is a short check of server-side resources used by Customizer Reset - Export & Import
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0836.40 ▼7.98
Dashboard /wp-admin3.38 ▲0.0844.72 ▼3.50
Posts /wp-admin/edit.php3.50 ▲0.1448.88 ▲3.51
Add New Post /wp-admin/post-new.php5.96 ▲0.0891.65 ▼0.51
Media Library /wp-admin/upload.php3.31 ▲0.0832.53 ▼1.61

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Customizer Reset - Export & Import
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7214.60 ▲0.262.00 ▲0.3940.97 ▼3.12
Dashboard /wp-admin2,199 ▲215.65 ▼0.0293.82 ▼20.4841.78 ▲0.52
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0639.54 ▲2.0236.40 ▲0.15
Add New Post /wp-admin/post-new.php1,545 ▲1924.95 ▲1.63592.81 ▼120.1664.92 ▲5.72
Media Library /wp-admin/upload.php1,407 ▲74.20 ▲0.0196.12 ▼0.4941.77 ▼2.61

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% 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× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/customizer-reset/templates/import-form.php
    • > /wp-content/plugins/customizer-reset/customizer-reset.php
    • > /wp-content/plugins/customizer-reset/autoload.php
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/customizer-reset/helpers/class-customizer-setting.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'CustomizerReset\\Helpers\\Base' not found in wp-content/plugins/customizer-reset/helpers/class-export.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CustomizerReset\\Helpers\\Base' not found in wp-content/plugins/customizer-reset/helpers/class-import.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: export, customizer import, customizer export, import, customizer reset...

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

"Customizer Reset - Export & Import" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
93 characters long description:
Reset, export, and import your WordPress Customizer settings with just one click of a button.

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
Success! There were no dangerous files found in this plugin541 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity10.60
▷ Minimum class complexity1.00
▷ Maximum class complexity24.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
▷ Static methods00.00%
▷ Public methods1583.33%
▷ Protected methods00.00%
▷ Private methods316.67%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants3100.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
There are no PNG files in this plugin