Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- Install procedure had errors
- > Warning in wp-content/plugins/tooltip-icons-for-products/includes/wp-tooltip-icons-products-functions.php+9
Use of undefined constant enable_icons - assumed 'enable_icons' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.95MB] [CPU: ▼59.51ms] Passed 4 tests
An overview of server-side resources used by Tooltip Icons for Products
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.05 ▼1.41 | 5.58 ▼37.99 |
Dashboard /wp-admin | 2.07 ▼1.28 | 7.35 ▼56.91 |
Posts /wp-admin/edit.php | 2.07 ▼1.29 | 6.51 ▼44.73 |
Add New Post /wp-admin/post-new.php | 2.07 ▼3.82 | 6.10 ▼98.41 |
Media Library /wp-admin/upload.php | 2.07 ▼1.16 | 7.07 ▼27.63 |
Sobre Daniel Esparza /wp-admin/admin.php?page=desparza-menu | 2.07 | 6.33 |
Tooltip Icons for Products /wp-admin/admin.php?page=dewp-tip-admin-settings | 2.07 | 6.84 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Tooltip Icons for Products
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,839 ▲53 | 14.28 ▼0.28 | 1.94 ▼0.14 | 42.22 ▼0.40 |
Dashboard /wp-admin | 2,223 ▲43 | 5.60 ▼0.11 | 95.02 ▲8.06 | 46.25 ▲6.69 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 1.97 ▼0.03 | 41.33 ▲0.88 | 37.51 ▲0.35 |
Add New Post /wp-admin/post-new.php | 1,547 ▲21 | 23.34 ▲0.11 | 669.13 ▲22.91 | 52.92 ▼1.82 |
Media Library /wp-admin/upload.php | 1,422 ▲22 | 4.23 ▼0.01 | 136.67 ▲34.55 | 54.43 ▲8.17 |
Sobre Daniel Esparza /wp-admin/admin.php?page=desparza-menu | 814 | 2.00 | 26.62 | 31.98 |
Tooltip Icons for Products /wp-admin/admin.php?page=dewp-tip-admin-settings | 1,066 | 2.00 | 22.62 | 32.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/tooltip-icons-for-products/includes/wp-tooltip-icons-products-functions.php+9
Use of undefined constant enable_icons - assumed 'enable_icons' (this will throw an Error in a future version of PHP)
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=dewp-tip-admin-settings
- > Warning in wp-content/plugins/tooltip-icons-for-products/includes/wp-tooltip-icons-products-admin.php+121
Use of undefined constant enable_icons - assumed 'enable_icons' (this will throw an Error in a future version of PHP)
- 25 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=dewp-tip-admin-settings
- > Notice in wp-content/plugins/tooltip-icons-for-products/includes/wp-tooltip-icons-products-admin.php+194
Trying to access array offset on value of type bool
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/tooltip-icons-for-products/wp-tooltip-icons-products.php
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tooltip-icons-for-products/includes/wp-tooltip-icons-products-admin.php:11
- > PHP Warning
Use of undefined constant enable_icons - assumed 'enable_icons' (this will throw an Error in a future version of PHP) in wp-content/plugins/tooltip-icons-for-products/includes/wp-tooltip-icons-products-functions.php on line 9
- > PHP Notice
Undefined variable: dewp_options in wp-content/plugins/tooltip-icons-for-products/includes/wp-tooltip-icons-products-functions.php on line 9
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/tooltip-icons-for-products/includes/wp-tooltip-icons-products-functions.php on line 9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
- Requires php: The plugin version is formatted incorrectly
tooltip-icons-for-products/wp-tooltip-icons-products.php 85% from 13 tests
"Tooltip Icons for Products" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 227 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("tooltip-icons-for-products.php" instead of "wp-tooltip-icons-products.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected262 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 46 | 35 | 242 |
CSS | 2 | 2 | 2 | 18 |
JavaScript | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
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 | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG files were detected