Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.60MB] [CPU: ▼3.50ms] Passed 4 tests
This is a short check of server-side resources used by Automatic Tooltips
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.17 | 41.99 ▼3.18 |
Dashboard /wp-admin | 4.10 ▲0.75 | 51.33 ▼11.20 |
Posts /wp-admin/edit.php | 4.15 ▲0.79 | 55.78 ▲3.25 |
Add New Post /wp-admin/post-new.php | 6.64 ▲0.74 | 101.53 ▼2.88 |
Media Library /wp-admin/upload.php | 3.96 ▲0.73 | 44.43 ▲6.63 |
Statistics /wp-admin/admin.php?page=daextauttol-statistics | 3.99 | 48.65 |
Help /wp-admin/admin.php?page=daextauttol-help | 3.93 | 37.45 |
Categories /wp-admin/admin.php?page=daextauttol-categories | 4.04 | 40.77 |
Tooltips /wp-admin/admin.php?page=daextauttol-tooltips | 4.31 | 44.65 |
Options /wp-admin/admin.php?page=daextauttol-options | 3.95 | 40.93 |
Server storage [IO: ▲0.53MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 58 new files
Database: 3 new tables, 55 new options
New tables |
---|
wp_daextauttol_category |
wp_daextauttol_tooltip |
wp_daextauttol_statistic |
New WordPress options |
---|
daextauttol_style_tooltip_font_family |
daextauttol_advanced_general_limit_characters_per_tooltip |
daextauttol_style_tooltip_max_width |
daextauttol_advanced_protected_tags |
widget_recent-comments |
db_upgraded |
daextauttol_style_tooltip_horizontal_padding |
daextauttol_style_tooltip_font_size |
daextauttol_defaults_right_boundary |
daextauttol_database_version |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Automatic Tooltips
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲82 | 14.34 ▼0.32 | 1.66 ▼0.42 | 42.69 ▲1.91 |
Dashboard /wp-admin | 2,237 ▲57 | 5.64 ▼0.05 | 91.06 ▼5.95 | 39.12 ▼0.95 |
Posts /wp-admin/edit.php | 2,142 ▲39 | 2.01 ▲0.01 | 39.62 ▲3.59 | 37.26 ▲3.27 |
Add New Post /wp-admin/post-new.php | 1,576 ▲36 | 18.85 ▼4.19 | 612.83 ▼112.44 | 52.56 ▼9.98 |
Media Library /wp-admin/upload.php | 1,442 ▲42 | 4.21 ▼0.05 | 97.35 ▼13.27 | 43.70 ▼1.09 |
Statistics /wp-admin/admin.php?page=daextauttol-statistics | 918 | 1.91 | 25.62 | 35.95 |
Help /wp-admin/admin.php?page=daextauttol-help | 840 | 2.05 | 25.24 | 27.81 |
Categories /wp-admin/admin.php?page=daextauttol-categories | 982 | 2.24 | 52.27 | 34.14 |
Tooltips /wp-admin/admin.php?page=daextauttol-tooltips | 1,478 | 2.87 | 68.35 | 38.83 |
Options /wp-admin/admin.php?page=daextauttol-options | 1,784 | 2.84 | 69.89 | 36.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/automatic-tooltips/admin/view/help.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/automatic-tooltips/admin/view/tooltips.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/automatic-tooltips/admin/view/statistics.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/automatic-tooltips/admin/view/options.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/automatic-tooltips/admin/view/categories.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
automatic-tooltips/init.php 92% from 13 tests
"Automatic Tooltips" version 1.07's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("automatic-tooltips.php" instead of "init.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected8,429 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 1,406 | 894 | 4,362 |
CSS | 15 | 516 | 90 | 2,670 |
JavaScript | 11 | 188 | 60 | 1,378 |
Markdown | 1 | 4 | 0 | 19 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 45.33 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 142.00 |
Average method complexity | 2.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 84.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 138 | |
▷ Static methods | 7 | 5.07% |
▷ Public methods | 124 | 89.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 10.14% |
Functions | 8 | |
▷ Named functions | 1 | 12.50% |
▷ Anonymous functions | 7 | 87.50% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
14 PNG files occupy 0.11MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/inc/chosen/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
admin/assets/img/search-hover.png | 0.21KB | 0.21KB | 0.00% |
admin/assets/img/clone-hover.png | 18.71KB | 0.12KB | ▼ 99.34% |
admin/assets/img/arrow-down-f7f7f7.png | 15.21KB | 0.15KB | ▼ 98.99% |
admin/assets/img/edit-hover.png | 1.30KB | 0.33KB | ▼ 74.47% |