84% simple-customizer

Code Review | Simple customize

WordPress plugin Simple customize scored84%from 54 tests.

About plugin

  • Plugin page: simple-customizer
  • Plugin version: 1.7.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-5.6
  • WordPress version: 6.3.1
  • First release: Jul 24, 2013
  • Latest release: Dec 6, 2020
  • Number of updates: 133
  • Update frequency: every 20.3 days
  • Top authors: Clorith (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /16,682 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.28MB] [CPU: ▼2.75ms] Passed 4 tests

A check of server-side resources used by Simple customize
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.3039.16 ▼1.87
Dashboard /wp-admin3.58 ▲0.2757.27 ▲8.45
Posts /wp-admin/edit.php3.69 ▲0.3349.61 ▼0.68
Add New Post /wp-admin/post-new.php6.17 ▲0.2886.34 ▼14.53
Media Library /wp-admin/upload.php3.51 ▲0.2740.05 ▲6.10
Add New /wp-admin/post-new.php?post_type=s-c-font3.5446.75
Categories /wp-admin/edit-tags.php?taxonomy=simple-customize&post_type=simple-customize3.5034.78
Simple Customize Fonts Debug /wp-admin/edit.php?post_type=s-c-font3.5540.41
Simple Customize Debug /wp-admin/edit.php?post_type=simple-customize3.5535.76
Simple Customize /wp-admin/themes.php?page=simple-customize3.5536.20
Add New /wp-admin/post-new.php?post_type=simple-customize3.5453.22

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
simple-customize-version
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Simple customize
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,870 ▲13513.62 ▼0.781.62 ▼0.4638.62 ▼12.37
Dashboard /wp-admin2,265 ▲835.76 ▼0.10105.18 ▲2.0739.78 ▼3.90
Posts /wp-admin/edit.php2,151 ▲592.07 ▲0.0135.09 ▼6.5033.89 ▼2.10
Add New Post /wp-admin/post-new.php1,585 ▲5223.27 ▼0.00682.89 ▲53.2259.07 ▼0.51
Media Library /wp-admin/upload.php1,444 ▲594.24 ▲0.0498.30 ▲2.7542.13 ▼0.32
Add New /wp-admin/post-new.php?post_type=s-c-font1,5502.5359.5351.14
Categories /wp-admin/edit-tags.php?taxonomy=simple-customize&post_type=simple-customize1,2992.1426.4028.19
Simple Customize Fonts Debug /wp-admin/edit.php?post_type=s-c-font1,1241.9930.4628.93
Simple Customize Debug /wp-admin/edit.php?post_type=simple-customize1,1241.9829.4825.35
Simple Customize /wp-admin/themes.php?page=simple-customize1,2482.1125.1431.51
Add New /wp-admin/post-new.php?post_type=simple-customize1,6302.7152.9754.12

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% 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)
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Parse error
      syntax error, unexpected end of file, expecting elseif (T_ELSEIF) or else (T_ELSE) or endif (T_ENDIF) in wp-content/plugins/simple-customizer/options/fonts.php on line 136

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: theme, css, customization, customisation, design

simple-customizer/simple-customize.php 92% from 13 tests

The principal PHP file in "Simple customize" v. 1.7.1 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("simple-customizer.php" instead of "simple-customize.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected2,161 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP123132851,859
JavaScript33722178
CSS270124

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity79.50
▷ Minimum class complexity1.00
▷ Maximum class complexity158.00
Average method complexity6.23
▷ Minimum method complexity1.00
▷ Maximum method complexity51.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods30
▷ Static methods13.33%
▷ Public methods30100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
resources/images/help-overview.png12.22KB6.61KB▼ 45.92%