10% wp-theme-customizer-minified

Code Review | WP Theme Customizer by phpbaba

WordPress plugin WP Theme Customizer by phpbaba scored10%from 54 tests.

About plugin

  • Plugin page: wp-theme-customiz...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6
  • WordPress version: 6.3.1
  • First release: Sep 24, 2013
  • Latest release: Sep 24, 2013
  • Number of updates: 9
  • Update frequency: every 10.3 days
  • Top authors: umartunes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,437 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/wp-theme-customizer-minified/includes/module/module.php+19
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼0.93MB] [CPU: ▼39.62ms] Passed 4 tests

An overview of server-side resources used by WP Theme Customizer by phpbaba
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /5.48 ▲2.0261.63 ▲15.71
Dashboard /wp-admin3.01 ▼0.2924.80 ▼32.29
Posts /wp-admin/edit.php3.01 ▼0.3523.27 ▼33.51
Add New Post /wp-admin/post-new.php3.01 ▼2.8823.78 ▼74.47
Media Library /wp-admin/upload.php3.01 ▼0.2224.08 ▼18.19
Customizer /wp-admin/admin.php?page=wptc_theme_customizer3.0124.46
Backgrounds Options /wp-admin/admin.php?page=wptc_display_backgrounds_options3.0129.96
Effects /wp-admin/admin.php?page=wptc_display_effects_options3.0127.33
Colors Options /wp-admin/admin.php?page=wptc_display_colors_options3.0128.55

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 39 new files
Database: no new tables, 27 new options
New WordPress options
wptc_bg_image_2
can_compress_scripts
wptc_bg_pattern_1
widget_theysaidso_widget
wptc_color_palatte_3
wptc_color_palatte_1
wptc_effect
wptc_bg_image_4
wptc_bg_pattern_3
widget_recent-posts
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Theme Customizer by phpbaba
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,082 ▲32113.80 ▼0.959.07 ▲7.3259.88 ▲18.74
Dashboard /wp-admin2,256 ▲565.90 ▲0.05104.64 ▼17.9439.45 ▼6.17
Posts /wp-admin/edit.php2,114 ▲112.04 ▲0.0538.31 ▼14.0733.65 ▼3.61
Add New Post /wp-admin/post-new.php1,573 ▲1823.29 ▲4.99617.03 ▼49.6963.66 ▲9.89
Media Library /wp-admin/upload.php1,435 ▲354.29 ▲0.09113.25 ▲2.1950.55 ▲0.41
Customizer /wp-admin/admin.php?page=wptc_theme_customizer9882.2035.2839.59
Backgrounds Options /wp-admin/admin.php?page=wptc_display_backgrounds_options1,0242.0631.4943.76
Effects /wp-admin/admin.php?page=wptc_display_effects_options9262.0429.5335.73
Colors Options /wp-admin/admin.php?page=wptc_display_colors_options9682.1730.6733.15

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/wp-theme-customizer-minified/includes/admin/admin_options.php+42
    Function create_function() is deprecated
  • This plugin did not uninstall successfully, leaving 27 options in the database
    • wptc_bg_image_1
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • wptc_module_skin
    • wptc_bg_pattern_5
    • wptc_bg_pattern_3
    • wptc_effect
    • wptc_bg_pattern_1
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
  • 12 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wptc_display_colors_options
    • > Deprecated in wp-content/plugins/wp-theme-customizer-minified/includes/admin/admin_options.php+60
    Function create_function() is deprecated

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
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-theme-customizer-minified/includes/module/thumb.php
  • 15× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-theme-customizer-minified/includes/admin/admin_includes/backgrounds_options.php:187
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-theme-customizer-minified/includes/admin/admin_options.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-theme-customizer-minified/includes/admin/admin_includes/colors_options.php:120
    • > PHP Warning
      imagecopyresized() expects parameter 2 to be resource, bool given in wp-content/plugins/wp-theme-customizer-minified/includes/module/thumb.php on line 52
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-theme-customizer-minified/wp-theme-customizer.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-theme-customizer-minified/includes/module/module.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-theme-customizer-minified/includes/admin/admin_includes/effects_options.php:28
    • > PHP Notice
      Trying to access array offset on value of type bool in wp-content/plugins/wp-theme-customizer-minified/includes/module/thumb.php on line 22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-theme-customizer-minified/includes/admin/admin_includes/general_options.php:131
    • > PHP Notice
      Trying to access array offset on value of type bool in wp-content/plugins/wp-theme-customizer-minified/includes/module/thumb.php on line 24

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 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
8 plugin tags: rain, theme designer, effects, background changer, color palattes...

wp-theme-customizer-minified/wp-theme-customizer.php 85% from 13 tests

"WP Theme Customizer by phpbaba" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-theme-customizer-minified.php" instead of "wp-theme-customizer.php")
  • Description: The description should be shorter than 140 characters (currently 219 characters long)

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
There were no executable files found in this plugin2,112 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP101,2611471,664
CSS45526412
JavaScript214636

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
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
Namespaces0
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%
Functions61
▷ Named functions61100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
17 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-colors.png4.43KB2.45KB▼ 44.72%
assets/effect-snow.png2.60KB1.57KB▼ 39.59%
assets/effect-normal.png0.83KB0.14KB▼ 82.82%
assets/phpbaba.png4.81KB4.15KB▼ 13.64%
images/bg-patterns/wptc_pattern4.png2.02KB1.36KB▼ 32.53%