Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.43MB] [CPU: ▼26.75ms] Passed 4 tests
A check of server-side resources used by OptionTree
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 47.70 ▲9.83 |
Dashboard /wp-admin | 4.72 ▲1.37 | 42.58 ▼21.28 |
Posts /wp-admin/edit.php | 4.72 ▲1.36 | 38.66 ▼13.38 |
Add New Post /wp-admin/post-new.php | 4.72 ▼1.17 | 41.62 ▼74.49 |
Media Library /wp-admin/upload.php | 4.72 ▲1.49 | 42.00 ▲2.17 |
Documentation /wp-admin/admin.php?page=ot-documentation | 4.72 | 37.93 |
Theme Options /wp-admin/themes.php?page=ot-theme-options | 4.72 | 37.10 |
Settings /wp-admin/admin.php?page=ot-settings | 4.72 | 40.10 |
Server storage [IO: ▲1.34MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 38 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
option_tree_settings |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
option_tree |
widget_theysaidso_widget |
can_compress_scripts |
ot_media_post_ID |
Browser metrics Passed 4 tests
An overview of browser requirements for OptionTree
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲63 | 14.35 ▼0.03 | 1.65 ▼0.34 | 45.14 ▲2.88 |
Dashboard /wp-admin | 2,227 ▲50 | 5.56 ▼0.06 | 84.90 ▼11.33 | 38.81 ▼12.77 |
Posts /wp-admin/edit.php | 2,132 ▲32 | 1.96 ▲0.01 | 35.57 ▼4.80 | 33.37 ▼3.19 |
Add New Post /wp-admin/post-new.php | 1,628 ▲102 | 24.09 ▲0.95 | 722.11 ▲27.44 | 37.03 ▼29.90 |
Media Library /wp-admin/upload.php | 1,432 ▲35 | 4.22 ▲0.02 | 108.57 ▼16.17 | 47.68 ▼1.04 |
Documentation /wp-admin/admin.php?page=ot-documentation | 2,445 | 4.55 | 79.65 | 63.49 |
Theme Options /wp-admin/themes.php?page=ot-theme-options | 1,126 | 4.22 | 62.26 | 32.41 |
Settings /wp-admin/admin.php?page=ot-settings | 1,964 | 4.50 | 60.68 | 41.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
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/option-tree/includes/class-ot-settings.php+395
Trying to access array offset on value of type bool
- The uninstall procedure has failed, leaving 9 options in the database
- option_tree
- widget_recent-posts
- option_tree_settings
- db_upgraded
- theysaidso_admin_options
- ot_media_post_ID
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
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
Almost there, just fix the following server-side errors
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=ot-settings
- > Notice in wp-content/plugins/option-tree/includes/class-ot-settings.php+396
Trying to access array offset on value of type bool
SRP 0% 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 fix the following items
- 11× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/option-tree/includes/ot-functions-docs-page.php
- > /wp-content/plugins/option-tree/includes/ot-functions.php
- > /wp-content/plugins/option-tree/includes/class-ot-settings.php
- > /wp-content/plugins/option-tree/includes/ot-functions-deprecated.php
- > /wp-content/plugins/option-tree/includes/ot-functions-settings-page.php
- > /wp-content/plugins/option-tree/includes/class-ot-post-formats.php
- > /wp-content/plugins/option-tree/includes/class-ot-meta-box.php
- > /wp-content/plugins/option-tree/includes/ot-functions-admin.php
- > /wp-content/plugins/option-tree/includes/ot-functions-compat.php
- > /wp-content/plugins/option-tree/includes/class-ot-cleanup.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/option-tree/assets/theme-mode/demo-theme-options.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/option-tree/assets/theme-mode/demo-meta-boxes.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: meta boxes, theme options, settings, options
option-tree/ot-loader.php 92% from 13 tests
The principal PHP file in "OptionTree" v. 2.7.3 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("option-tree.php" instead of "ot-loader.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin14,186 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 2,896 | 3,978 | 8,330 |
CSS | 2 | 79 | 248 | 4,299 |
JavaScript | 3 | 203 | 102 | 1,114 |
SVG | 1 | 0 | 0 | 379 |
JSON | 1 | 0 | 0 | 64 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 63.80 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 7.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 47.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 47 | 88.68% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 11.32% |
Functions | 187 | |
▷ Named functions | 182 | 97.33% |
▷ Anonymous functions | 5 | 2.67% |
Constants | 21 | |
▷ Global constants | 21 | 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
10 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/layout/left-sidebar.png | 3.90KB | 2.09KB | ▼ 46.31% |
assets/images/ot-select-hover-rtl.png | 1.02KB | 0.14KB | ▼ 85.91% |
assets/images/layout/dual-sidebar.png | 3.88KB | 2.09KB | ▼ 46.20% |
assets/images/ot-select-rtl.png | 1.02KB | 0.14KB | ▼ 85.96% |
assets/images/ot-select.png | 1.03KB | 0.14KB | ▼ 86.03% |