84% customizer-reset-by-wpzoom

Code Review | Customizer Reset

WordPress plugin Customizer Reset scored84%from 54 tests.

About plugin

  • Plugin page: customizer-reset-...
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.3
  • WordPress version: 6.3.1
  • First release: Jan 26, 2015
  • Latest release: Aug 9, 2023
  • Number of updates: 38
  • Update frequency: every 82.1 days
  • Top authors: WPZOOM (63.16%)nvartolomei (39.47%)

Code review

54 tests

User reviews

14 reviews

Install metrics

10,000+ active /151,589 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
Install script ran successfully

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

Server-side resources used by Customizer Reset
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0238.68 ▼1.41
Dashboard /wp-admin3.33 ▼0.0247.76 ▼15.67
Posts /wp-admin/edit.php3.38 ▲0.0245.30 ▲0.39
Add New Post /wp-admin/post-new.php5.91 ▲0.0279.16 ▼12.90
Media Library /wp-admin/upload.php3.25 ▲0.0231.99 ▲0.07

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Customizer Reset
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.17 ▼0.181.73 ▼0.1043.65 ▼0.21
Dashboard /wp-admin2,198 ▲185.63 ▼0.0486.48 ▼13.1441.85 ▼3.46
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0634.86 ▼0.9828.98 ▼7.88
Add New Post /wp-admin/post-new.php1,532 ▲623.10 ▼0.43589.32 ▼88.5260.53 ▼4.99
Media Library /wp-admin/upload.php1,397 ▼34.23 ▲0.0594.57 ▼1.3840.28 ▼7.69

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WPZOOM_Customizer_Reset\\add_action() in wp-content/plugins/customizer-reset-by-wpzoom/customizer-reset.php:17

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)
No browser issues were found

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
7 plugin tags: astra, customizer reset, wpzoom, customize, theme...

customizer-reset-by-wpzoom/customizer-reset.php 85% from 13 tests

"Customizer Reset" version 1.1.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("customizer-reset-by-wpzoom.php" instead of "customizer-reset.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin123 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1185283
JavaScript16126
Markdown113014

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.65
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
Namespaces1
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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