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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.22ms] Passed 4 tests
This is a short check of server-side resources used by Killer Theme Options
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 42.78 ▲1.87 |
Dashboard /wp-admin | 3.32 ▼0.02 | 50.41 ▼12.88 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 49.67 ▲0.36 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 86.84 ▼14.23 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 40.96 ▲2.65 |
Killer Theme Options /wp-admin/themes.php?page=killeroptionsframework | 3.19 | 31.94 |
Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 11 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
kto_of_shortname |
widget_recent-posts |
kto_of_template |
activated_killer_theme_options |
recovery_mode_email_last_sent |
kto_of_themename |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Killer Theme Options
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲58 | 13.19 ▼1.46 | 2.37 ▲0.63 | 43.74 ▲0.93 |
Dashboard /wp-admin | 2,225 ▲22 | 5.84 ▼0.00 | 114.61 ▲11.41 | 41.82 ▲2.69 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▼0.00 | 34.44 ▼4.90 | 33.66 ▼3.22 |
Add New Post /wp-admin/post-new.php | 1,543 ▲3 | 23.38 ▲0.28 | 657.59 ▼21.46 | 60.14 ▲4.18 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.12 ▼0.13 | 112.06 ▼1.23 | 47.48 ▼0.67 |
Killer Theme Options /wp-admin/themes.php?page=killeroptionsframework | 741 | 1.69 | 19.84 | 32.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall successfully, leaving 10 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- kto_of_themename
- kto_of_shortname
- kto_of_template
- can_compress_scripts
- recovery_mode_email_last_sent
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/themes.php?page=killeroptionsframework
- > Notice in wp-content/plugins/killer-theme-options/option/killer_theme_options_interface.php+481
Undefined index: del
- > GET request to /wp-admin/themes.php?page=killeroptionsframework
- > Error in wp-content/plugins/killer-theme-options/option/killer_theme_options_interface.php+545
Uncaught Error: Call to undefined function ereg_replace() in wp-content/plugins/killer-theme-options/option/killer_theme_options_interface.php:545
Stack trace:
#0 wp-content/plugins/killer-theme-options/option/killer_theme_options_interface.php(152): killer_theme_options_optionsframework_machine()
#1 wp-includes/class-wp-hook.php(310): killer_theme_options_optionsframework_options_page()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 wp-admin/themes.php(10): require_once('/var/www/wordpr...')
#6 {main}
thrown
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/killer-theme-options/option/killer_theme_options_design.php:107
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/killer-theme-options/killer-theme-options.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/killer-theme-options/option/killer_theme_options_interface.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #1 (General options ( screenshot-1.png )), #2 (Social setting ( screenshot-2.png )), #3 (Create new custom field ( screenshot-3.png )), #4 (view created new custom fields with it's value ( screenshot-4.png ))
killer-theme-options/killer-theme-options.php 92% from 13 tests
"Killer Theme Options" version 2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 163 characters long)
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
There were no executable files found in this plugin1,325 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 146 | 78 | 545 |
JavaScript | 1 | 90 | 213 | 379 |
CSS | 1 | 391 | 7 | 374 |
XML | 1 | 0 | 0 | 27 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
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 | 17 | |
▷ Named functions | 17 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
15 PNG files occupy 0.52MB with 0.35MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
option/images/2cl.png | 2.91KB | 0.24KB | ▼ 91.79% |
option/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
option/images/wrench.png | 0.37KB | 0.27KB | ▼ 28.04% |
screenshot-2.png | 156.06KB | 42.63KB | ▼ 72.68% |
option/images/accept.png | 2.85KB | 0.17KB | ▼ 93.86% |