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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.48 ▲2.02 | 61.63 ▲15.71 |
Dashboard /wp-admin | 3.01 ▼0.29 | 24.80 ▼32.29 |
Posts /wp-admin/edit.php | 3.01 ▼0.35 | 23.27 ▼33.51 |
Add New Post /wp-admin/post-new.php | 3.01 ▼2.88 | 23.78 ▼74.47 |
Media Library /wp-admin/upload.php | 3.01 ▼0.22 | 24.08 ▼18.19 |
Customizer /wp-admin/admin.php?page=wptc_theme_customizer | 3.01 | 24.46 |
Backgrounds Options /wp-admin/admin.php?page=wptc_display_backgrounds_options | 3.01 | 29.96 |
Effects /wp-admin/admin.php?page=wptc_display_effects_options | 3.01 | 27.33 |
Colors Options /wp-admin/admin.php?page=wptc_display_colors_options | 3.01 | 28.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,082 ▲321 | 13.80 ▼0.95 | 9.07 ▲7.32 | 59.88 ▲18.74 |
Dashboard /wp-admin | 2,256 ▲56 | 5.90 ▲0.05 | 104.64 ▼17.94 | 39.45 ▼6.17 |
Posts /wp-admin/edit.php | 2,114 ▲11 | 2.04 ▲0.05 | 38.31 ▼14.07 | 33.65 ▼3.61 |
Add New Post /wp-admin/post-new.php | 1,573 ▲18 | 23.29 ▲4.99 | 617.03 ▼49.69 | 63.66 ▲9.89 |
Media Library /wp-admin/upload.php | 1,435 ▲35 | 4.29 ▲0.09 | 113.25 ▲2.19 | 50.55 ▲0.41 |
Customizer /wp-admin/admin.php?page=wptc_theme_customizer | 988 | 2.20 | 35.28 | 39.59 |
Backgrounds Options /wp-admin/admin.php?page=wptc_display_backgrounds_options | 1,024 | 2.06 | 31.49 | 43.76 |
Effects /wp-admin/admin.php?page=wptc_display_effects_options | 926 | 2.04 | 29.53 | 35.73 |
Colors Options /wp-admin/admin.php?page=wptc_display_colors_options | 968 | 2.17 | 30.67 | 33.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 1,261 | 147 | 1,664 |
CSS | 4 | 55 | 26 | 412 |
JavaScript | 2 | 14 | 6 | 36 |
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 code | 0.43 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 61 | |
▷ Named functions | 61 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-colors.png | 4.43KB | 2.45KB | ▼ 44.72% |
assets/effect-snow.png | 2.60KB | 1.57KB | ▼ 39.59% |
assets/effect-normal.png | 0.83KB | 0.14KB | ▼ 82.82% |
assets/phpbaba.png | 4.81KB | 4.15KB | ▼ 13.64% |
images/bg-patterns/wptc_pattern4.png | 2.02KB | 1.36KB | ▼ 32.53% |