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
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼8.43ms] Passed 4 tests
This is a short check of server-side resources used by Customizer Options Tree
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.57 ▼4.04 |
Dashboard /wp-admin | 3.33 ▲0.02 | 42.75 ▼7.57 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 46.97 ▼0.48 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 78.50 ▼21.62 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.60 ▲4.40 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
mmc_fields |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Customizer Options Tree
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲66 | 14.44 ▲0.14 | 1.68 ▲0.04 | 41.09 ▼3.69 |
Dashboard /wp-admin | 2,215 ▲27 | 4.91 ▼0.98 | 117.17 ▲10.19 | 43.13 ▼3.25 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.03 ▲0.02 | 39.81 ▼1.84 | 35.19 ▲0.94 |
Add New Post /wp-admin/post-new.php | 1,548 ▲20 | 22.92 ▲4.60 | 660.66 ▲52.88 | 65.21 ▼8.63 |
Media Library /wp-admin/upload.php | 1,394 ▲15 | 4.22 ▲0.02 | 99.35 ▼5.57 | 44.53 ▼0.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- db_upgraded
- mmc_fields
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/customizer-options-tree/templates/admin/ajax/default/control.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/customizer-options-tree/templates/admin/options.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/customizer-options-tree/templates/admin/ajax/inputs.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/customizer-options-tree/templates/admin/ajax/default/section.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/customizer-options-tree/customizer-options-tree.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: options, custom option tree, tree, options tree, get_option...
customizer-options-tree/customizer-options-tree.php 69% from 13 tests
"Customizer Options Tree" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
- Requires at least: The required version number did not match the one declared in readme.txt ("4.0.0" instead of "5.3")
- Description: The description should be shorter than 140 characters (currently 354 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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
Success! There were no dangerous files found in this plugin698 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 56 | 78 | 564 |
JavaScript | 2 | 10 | 1 | 133 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
PNG images were not found in this plugin