Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- The plugin did not install without errors
- > User deprecated in wp-includes/functions.php+5453
Function get_current_theme is deprecated since version 3.4.0! Use wp_get_theme() instead.
Server metrics [RAM: ▼1.78MB] [CPU: ▼50.47ms] Passed 4 tests
Analyzing server-side resources used by ITM Option Panel
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 47.53 ▲9.79 |
Dashboard /wp-admin | 2.16 ▼1.14 | 7.21 ▼40.58 |
Posts /wp-admin/edit.php | 2.17 ▼1.19 | 6.19 ▼40.08 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.73 | 5.93 ▼92.56 |
Media Library /wp-admin/upload.php | 2.17 ▼1.07 | 6.43 ▼28.64 |
Theme Options /wp-admin/themes.php?page=itmfw_options | 2.17 | 7.08 |
Server storage [IO: ▲0.87MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 57 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
itmfw_option |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ITM Option Panel
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲76 | 13.32 ▼1.26 | 1.69 ▲0.10 | 22.03 ▼22.19 |
Dashboard /wp-admin | 2,231 ▲43 | 5.32 ▼0.59 | 92.34 ▼11.84 | 47.41 ▲2.81 |
Posts /wp-admin/edit.php | 2,129 ▲40 | 2.16 ▲0.15 | 41.01 ▲2.08 | 41.12 ▲5.30 |
Add New Post /wp-admin/post-new.php | 1,543 ▲9 | 23.51 ▲0.32 | 686.05 ▲6.06 | 36.97 ▼18.03 |
Media Library /wp-admin/upload.php | 1,420 ▲35 | 4.53 ▲0.32 | 87.54 ▼10.61 | 45.51 ▲2.90 |
Theme Options /wp-admin/themes.php?page=itmfw_options | 1,127 | 2.54 | 46.86 | 53.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin cannot be uninstalled
- > User deprecated in wp-includes/functions.php+5453
Function get_current_theme is deprecated since version 3.4.0! Use wp_get_theme() instead.
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- itmfw_option
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/themes.php?page=itmfw_options
- > User deprecated in wp-includes/functions.php+5453
Function get_current_theme is deprecated since version 3.4.0! Use wp_get_theme() instead.
- 7 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?page=itmfw_options
- > Notice in wp-content/plugins/itm-option-panel/class.init.php+232
Undefined index: title
SRP 50% 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
The following issues need your attention
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'ITM_FW' not found in wp-content/plugins/itm-option-panel/fields.init.php:9
- > PHP Warning
require(ITMFW_OPTION_PANEL_DIR/options.php): failed to open stream: No such file or directory in wp-content/plugins/itm-option-panel/class.init.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/itm-option-panel/theme-options.php:41
- > PHP Fatal error
require(): Failed opening required 'ITMFW_OPTION_PANEL_DIR/options.php' (include_path='.:/usr/share/php') in wp-content/plugins/itm-option-panel/class.init.php on line 13
- > PHP Warning
Use of undefined constant ITMFW_OPTION_PANEL_DIR - assumed 'ITMFW_OPTION_PANEL_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/itm-option-panel/class.init.php on line 13
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following user-side errors
- > GET request to /wp-admin/themes.php?page=itmfw_options
- > Javascript (severe) in unknown
/wp-includes/js/jquery/jquery.min.js?ver=3.7.0 1:11743 Uncaught Error: Syntax error, unrecognized expression: a[rel=]
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (/assets/1.0/screenshot-1.png) image required
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== itm-option-panel ===
)
itm-option-panel/theme-options.php 92% from 13 tests
"ITM Option Panel" 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: The principal plugin file should be the same as the plugin slug ("itm-option-panel.php" instead of "theme-options.php")
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
No dangerous file extensions were detected9,423 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 50 | 44 | 7,639 |
JavaScript | 6 | 19 | 48 | 873 |
PHP | 4 | 91 | 129 | 497 |
SVG | 1 | 0 | 0 | 414 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 21.50 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 95.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 4.17% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
25 compressed PNG files occupy 0.18MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/custom_submit.png | 0.97KB | 0.99KB | 0.00% |
assets/images/colorpicker_background.png | 1.85KB | 2.14KB | 0.00% |
assets/images/custom_rgb_r.png | 0.99KB | 0.74KB | ▼ 25.34% |
assets/images/custom_hex.png | 0.55KB | 0.39KB | ▼ 28.11% |
assets/images/colorpicker_hsb_b.png | 0.95KB | 0.76KB | ▼ 19.48% |