Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.19MB] [CPU: ▲0.61ms] Passed 4 tests
Analyzing server-side resources used by Click To Dial - Wp Click To Call Support
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.97 ▲1.51 | 50.25 ▲11.34 |
Dashboard /wp-admin | 4.78 ▲1.47 | 58.72 ▲8.46 |
Posts /wp-admin/edit.php | 4.83 ▲1.47 | 60.45 ▲18.63 |
Add New Post /wp-admin/post-new.php | 6.29 ▲0.40 | 64.75 ▼35.96 |
Media Library /wp-admin/upload.php | 4.64 ▲1.41 | 49.32 ▲18.58 |
Server storage [IO: ▲4.19MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 170 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
ctd-opt |
widget_recent-comments |
Browser metrics Passed 4 tests
Click To Dial - Wp Click To Call Support: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,059 ▲297 | 16.08 ▲1.94 | 25.23 ▲23.36 | 95.91 ▲51.26 |
Dashboard /wp-admin | 2,244 ▲64 | 5.55 ▼0.04 | 92.04 ▼2.09 | 44.51 ▲3.01 |
Posts /wp-admin/edit.php | 2,159 ▲59 | 2.07 ▲0.07 | 40.79 ▼0.88 | 35.82 ▼2.14 |
Add New Post /wp-admin/post-new.php | 1,745 ▲219 | 24.82 ▲1.70 | 728.12 ▲74.19 | 40.35 ▼17.51 |
Media Library /wp-admin/upload.php | 1,455 ▲52 | 4.21 ▼0.03 | 103.23 ▲1.95 | 43.60 ▼0.95 |
CTD settings /wp-admin/admin.php?page=ctd#tab=ctd-settings | 4,216 | 4.03 | 100.42 | 77.83 |
Backup /wp-admin/admin.php?page=ctd#tab=backup | 4,093 | 3.70 | 61.07 | 66.30 |
Buttons shortcodes /wp-admin/admin.php?page=ctd#tab=buttons-shortcodes | 4,078 | 3.50 | 60.95 | 89.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- db_upgraded
- ctd-opt
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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 fix the following items
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/click-to-dial/inc/functions.php
- > /wp-content/plugins/click-to-dial/click-to-dial.php
- > /wp-content/plugins/click-to-dial/inc/class-enqueue.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/click-to-dial/view/shortcodes/custom-shortcode.php:11
- > PHP Warning
Use of undefined constant CTD_ALERT_MSG - assumed 'CTD_ALERT_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/click-to-dial/inc/class-enqueue.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/click-to-dial/view/chat-bubbles/chat-bubbles.php:2
- > PHP Warning
Use of undefined constant CTD_ALERT_MSG - assumed 'CTD_ALERT_MSG' (this will throw an Error in a future version of PHP) in wp-content/plugins/click-to-dial/inc/functions.php on line 11
- > 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 on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6, #7 in click-to-dial/assets to your readme.txt
click-to-dial/click-to-dial.php 92% from 13 tests
The main PHP script in "Click To Dial - Wp Click To Call Support" version 1.1.5 is automatically included on every request by WordPress
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 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin25,258 lines of code in 113 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 71 | 2,089 | 1,429 | 9,193 |
PO File | 20 | 3,198 | 3,591 | 6,500 |
JavaScript | 8 | 103 | 139 | 6,014 |
Sass | 3 | 31 | 4 | 1,745 |
CSS | 6 | 80 | 19 | 1,335 |
Markdown | 1 | 58 | 0 | 281 |
JSON | 2 | 2 | 0 | 188 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review 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.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/image/bubble-6.png | 5.89KB | 2.70KB | ▼ 54.12% |
assets/image/button2.png | 4.13KB | 2.67KB | ▼ 35.39% |
admin/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |
assets/image/bubble-4.png | 3.40KB | 2.48KB | ▼ 27.09% |
assets/image/bubble-8.png | 4.63KB | 2.27KB | ▼ 50.95% |