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: ▲1.23MB] [CPU: ▲1.41ms] Passed 4 tests
Server-side resources used by Click To Email - MailTo Chat Bubble and Button for WordPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.02 ▲1.55 | 56.49 ▲13.32 |
Dashboard /wp-admin | 4.83 ▲1.52 | 58.44 ▲11.32 |
Posts /wp-admin/edit.php | 4.88 ▲1.52 | 63.01 ▲14.39 |
Add New Post /wp-admin/post-new.php | 6.34 ▲0.45 | 68.62 ▼33.40 |
Media Library /wp-admin/upload.php | 4.69 ▲1.45 | 51.58 ▲20.87 |
Server storage [IO: ▲3.72MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 171 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
ctm-opt |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Click To Email - MailTo Chat Bubble and Button for WordPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,162 ▲400 | 15.75 ▲1.41 | 28.28 ▲26.53 | 101.92 ▲57.94 |
Dashboard /wp-admin | 2,244 ▲67 | 5.55 ▼0.14 | 88.72 ▼14.80 | 41.53 ▼2.49 |
Posts /wp-admin/edit.php | 2,159 ▲59 | 2.07 ▲0.06 | 40.26 ▲0.84 | 36.01 ▲1.97 |
Add New Post /wp-admin/post-new.php | 1,731 ▲205 | 23.90 ▲1.02 | 658.01 ▼65.87 | 60.43 ▲0.31 |
Media Library /wp-admin/upload.php | 1,446 ▲43 | 4.25 ▲0.01 | 98.34 ▼2.04 | 43.35 ▼2.28 |
Buttons shortcodes /wp-admin/admin.php?page=ctm#tab=buttons-shortcodes | 4,140 | 3.59 | 93.46 | 51.44 |
Backup /wp-admin/admin.php?page=ctm#tab=backup | 4,138 | 3.40 | 56.68 | 71.64 |
CTM settings /wp-admin/admin.php?page=ctm#tab=ctm-settings | 4,278 | 4.07 | 72.81 | 78.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- ctm-opt
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Almost there! Just fix the following items
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/click-to-mail/inc/class-enqueue.php
- > /wp-content/plugins/click-to-mail/inc/functions.php
- > /wp-content/plugins/click-to-mail/click-to-mail.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant CTM_ALERT_MSG - assumed 'CTM_ALERT_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/click-to-mail/inc/functions.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/click-to-mail/view/chat-bubbles/chat-bubbles.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/click-to-mail/view/shortcodes/custom-shortcode.php:11
- > PHP Warning
Use of undefined constant CTM_ALERT_MSG - assumed 'CTM_ALERT_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/click-to-mail/inc/class-enqueue.php on line 11
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6, #7 in click-to-mail/assets to your readme.txt
click-to-mail/click-to-mail.php 92% from 13 tests
This is the main PHP file of "Click To Email - MailTo Chat Bubble and Button for WordPress" version 1.1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin25,552 lines of code in 115 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 71 | 2,106 | 1,453 | 9,243 |
PO File | 20 | 3,198 | 3,591 | 6,500 |
JavaScript | 9 | 99 | 140 | 6,126 |
Sass | 3 | 31 | 4 | 1,786 |
CSS | 7 | 91 | 21 | 1,406 |
Markdown | 1 | 58 | 0 | 281 |
JSON | 2 | 2 | 0 | 208 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 20.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 151.00 |
Average method complexity | 5.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 59 | |
▷ Abstract classes | 2 | 3.39% |
▷ Concrete classes | 57 | 96.61% |
▷ Final classes | 1 | 1.75% |
Methods | 246 | |
▷ Static methods | 30 | 12.20% |
▷ Public methods | 224 | 91.06% |
▷ Protected methods | 7 | 2.85% |
▷ Private methods | 15 | 6.10% |
Functions | 32 | |
▷ Named functions | 31 | 96.88% |
▷ Anonymous functions | 1 | 3.12% |
Constants | 8 | |
▷ Global constants | 5 | 62.50% |
▷ Class constants | 3 | 37.50% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
12 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/image/bubble-3.png | 6.13KB | 2.79KB | ▼ 54.47% |
assets/image/bubble-1.png | 1.33KB | 1.02KB | ▼ 22.88% |
assets/image/bubble-4.png | 7.77KB | 3.47KB | ▼ 55.33% |
assets/image/bubble-5.png | 7.49KB | 3.08KB | ▼ 58.82% |
assets/image/bubble-9.png | 6.21KB | 2.69KB | ▼ 56.66% |