Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼19.48ms] Passed 4 tests
A check of server-side resources used by Magic Tooltips For Contact Form 7
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 42.57 ▼2.67 |
Dashboard /wp-admin | 3.37 ▲0.07 | 35.46 ▼13.69 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 37.97 ▼8.33 |
Add New Post /wp-admin/post-new.php | 5.61 ▼0.27 | 74.22 ▼53.02 |
Media Library /wp-admin/upload.php | 3.37 ▲0.15 | 32.32 ▼2.86 |
Settings /wp-admin/admin.php?page=magic_tooltips_for_contact_form_7 | 3.35 | 30.78 |
Tooltip Style Generator /wp-admin/admin.php?page=mtfcf7_tooltip_generator | 3.25 | 27.21 |
Help /wp-admin/admin.php?page=mtfcf7_tooltip_help | 3.35 | 29.89 |
Server storage [IO: ▲2.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 57 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
mtfcf7_tooltip_generator |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
mtfcf7_settings |
Browser metrics Passed 4 tests
Checking browser requirements for Magic Tooltips For Contact Form 7
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲92 | 13.61 ▼0.97 | 2.06 ▼0.00 | 57.23 ▲13.10 |
Dashboard /wp-admin | 2,255 ▲64 | 4.90 ▲0.02 | 110.48 ▼6.11 | 43.32 ▼2.18 |
Posts /wp-admin/edit.php | 2,137 ▲45 | 2.03 ▼0.02 | 38.39 ▲1.50 | 35.47 ▲3.01 |
Add New Post /wp-admin/post-new.php | 1,552 ▲38 | 23.48 ▲5.82 | 673.61 ▲17.41 | 63.62 ▲8.02 |
Media Library /wp-admin/upload.php | 1,437 ▲49 | 4.24 ▲0.01 | 96.39 ▼4.90 | 41.63 ▲0.56 |
Settings /wp-admin/admin.php?page=magic_tooltips_for_contact_form_7 | 918 | 2.20 | 24.65 | 28.23 |
Tooltip Style Generator /wp-admin/admin.php?page=mtfcf7_tooltip_generator | 1,181 | 2.68 | 67.59 | 46.33 |
Help /wp-admin/admin.php?page=mtfcf7_tooltip_help | 836 | 2.04 | 27.08 | 27.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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 does not fully uninstall, leaving 8 options in the database
- mtfcf7_settings
- mtfcf7_tooltip_generator
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% 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
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mtfcf7_tooltip_help
- > Notice in wp-content/plugins/magic-tooltips-for-contact-form-7/plugin-index.php+77
Undefined index: active_form
- > GET request to /wp-admin/admin.php?page=magic_tooltips_for_contact_form_7
- > Notice in wp-content/plugins/magic-tooltips-for-contact-form-7/settings.php+199
Undefined index: custom_css
- > GET request to /wp-admin/admin.php?page=mtfcf7_tooltip_generator
- > Notice in wp-content/plugins/magic-tooltips-for-contact-form-7/css-generator.php+76
Undefined index: deps
- 8 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=mtfcf7_tooltip_generator
- > Notice in wp-content/plugins/magic-tooltips-for-contact-form-7/css-generator.php+91
Undefined index: ver
SRP 50% 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 take a closer look at the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/magic-tooltips-for-contact-form-7/help.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/magic-tooltips-for-contact-form-7/css-generator.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/magic-tooltips-for-contact-form-7/settings.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: tooltips, contact form 7, responsive, mobile friendly
magic-tooltips-for-contact-form-7/plugin-index.php 85% from 13 tests
The main PHP script in "Magic Tooltips For Contact Form 7" version 1.0.29 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("magic-tooltips-for-contact-form-7.php" instead of "plugin-index.php")
- Requires at least: The required version number must match the one declared in readme.txt ("3.2" instead of "3.9")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected10,924 lines of code in 33 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 11 | 235 | 149 | 3,754 |
JavaScript | 12 | 814 | 724 | 3,574 |
SVG | 1 | 0 | 0 | 2,671 |
PHP | 8 | 332 | 374 | 913 |
Markdown | 1 | 7 | 0 | 12 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 16.67 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 1 | 33.33% |
Methods | 45 | |
▷ Static methods | 2 | 4.44% |
▷ Public methods | 45 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 33 | |
▷ Named functions | 33 | 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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
13 PNG files occupy 0.55MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/tooltip-style-generator/img/bg.png | 42.75KB | 46.99KB | 0.00% |
assets/tooltip-style-generator/img/button.png | 34.66KB | 33.96KB | ▼ 2.00% |
screencap-3.png | 161.38KB | 42.11KB | ▼ 73.91% |
assets/tooltip-style-generator/img/gradient.png | 10.11KB | 8.24KB | ▼ 18.50% |
assets/img/icon.png | 1.32KB | 0.84KB | ▼ 36.03% |