90% customize-plus

Code Review | Customize Plus

WordPress plugin Customize Plus scored90%from 54 tests.

About plugin

  • Plugin page: customize-plus
  • Plugin version: 1.1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.4-4.9.4
  • WordPress version: 6.3.1
  • First release: Feb 24, 2018
  • Latest release: Feb 24, 2018
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: knitkode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /764 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.37MB] [CPU: ▼2.84ms] Passed 4 tests

Server-side resources used by Customize Plus
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.2737.82 ▼0.32
Dashboard /wp-admin3.76 ▲0.4245.94 ▼11.41
Posts /wp-admin/edit.php3.81 ▲0.4645.28 ▲2.92
Add New Post /wp-admin/post-new.php6.28 ▲0.4085.33 ▼2.56
Media Library /wp-admin/upload.php3.62 ▲0.4039.73 ▲7.88
Customize Plus /wp-admin/options-general.php?page=customize-plus3.5931.75
Customize Plus /wp-admin/options-general.php?page=customize-plustab=about3.5934.45

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 38 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Customize Plus
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.75 ▲0.191.93 ▲0.1943.78 ▼6.09
Dashboard /wp-admin2,196 ▲195.55 ▼0.1283.37 ▼1.2337.95 ▼5.92
Posts /wp-admin/edit.php2,107 ▼12.01 ▼0.0133.91 ▼16.0034.13 ▼6.99
Add New Post /wp-admin/post-new.php1,529 ▲323.13 ▼0.07680.01 ▲12.6459.36 ▼4.21
Media Library /wp-admin/upload.php1,404 ▲44.14 ▼0.06110.35 ▲13.4546.97 ▲2.61
Customize Plus /wp-admin/options-general.php?page=customize-plus9231.9922.3248.58
Customize Plus /wp-admin/options-general.php?page=customize-plustab=about7612.0222.6123.71

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: customizer, options framework, theme, wordpress

customize-plus/customize-plus.php 92% from 13 tests

The entry point to "Customize Plus" version 1.1.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Good job! No executable or dangerous file extensions detected15,360 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript42,4165,2709,536
PHP166093,1112,927
CSS44846582,872
JSON10025

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.56
Average class complexity13.24
▷ Minimum class complexity1.00
▷ Maximum class complexity83.00
Average method complexity3.36
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes37
▷ Abstract classes410.81%
▷ Concrete classes3389.19%
▷ Final classes00.00%
Methods191
▷ Static methods12062.83%
▷ Public methods12766.49%
▷ Protected methods4925.65%
▷ Private methods157.85%
Functions7
▷ Named functions571.43%
▷ Anonymous functions228.57%
Constants10
▷ Global constants440.00%
▷ Class constants660.00%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
6 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/sidebar-less.png0.08KB0.08KB0.00%
images/sidebar-both.png0.10KB0.10KB0.00%
images/logo-white.png3.31KB3.40KB0.00%
images/sidebar-left.png0.10KB0.10KB0.00%
images/logo.png3.14KB3.29KB0.00%