84% reset-customizer

Code Review | Reset Customizer

WordPress plugin Reset Customizer scored84%from 54 tests.

About plugin

  • Plugin page: reset-customizer
  • Plugin version: 1.1.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Nov 12, 2019
  • Latest release: Oct 31, 2023
  • Number of updates: 30
  • Update frequency: every 48.3 days
  • Top authors: domainsupport (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /8,284 total downloads

Benchmarks

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.14MB] [CPU: ▼8.00ms] Passed 4 tests

Server-side resources used by Reset Customizer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1340.47 ▼14.37
Dashboard /wp-admin3.46 ▲0.1154.39 ▼9.09
Posts /wp-admin/edit.php3.58 ▲0.2144.77 ▼2.17
Add New Post /wp-admin/post-new.php6.04 ▲0.1583.31 ▼6.37
Media Library /wp-admin/upload.php3.39 ▲0.1536.83 ▲2.86
Backup Customizer /wp-admin/themes.php?page=reset_customizer4.8336.28

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Reset Customizer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.72 ▲0.371.59 ▼0.3745.07 ▼3.96
Dashboard /wp-admin2,196 ▲195.56 ▼0.1186.24 ▼17.9238.26 ▼6.02
Posts /wp-admin/edit.php2,104 ▲71.96 ▼0.0434.74 ▼0.6531.58 ▼7.39
Add New Post /wp-admin/post-new.php1,529 ▲323.19 ▲1.70680.00 ▼20.6855.21 ▼0.09
Media Library /wp-admin/upload.php1,404 ▲44.19 ▲0.0198.45 ▼6.5442.11 ▼4.25
Backup Customizer /wp-admin/themes.php?page=reset_customizer8642.0323.8630.87

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • 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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/reset-customizer/reset-customizer.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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 is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: section, reset, sections, customize, customizer

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

The main PHP script in "Reset Customizer" version 1.1.5 is automatically included on every request by WordPress
111 characters long description:
Adds a reset button to each section in the customizer and easily backup / restore / migrate customizer settings

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
Good job! No executable or dangerous file extensions detected843 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP241816770
JavaScript25373

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity42.67
▷ Minimum class complexity6.00
▷ Maximum class complexity85.00
Average method complexity4.38
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods37
▷ Static methods2464.86%
▷ Public methods37100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected