Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▲2.04ms] Passed 4 tests
This is a short check of server-side resources used by Click to call button
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 43.40 ▲2.60 |
Dashboard /wp-admin | 3.31 ▲0.01 | 48.99 ▼0.94 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.73 ▲1.88 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 96.81 ▲11.67 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 36.24 ▲4.61 |
Click to Call Button /wp-admin/options-general.php?page=click-to-call-button | 3.18 | 29.30 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
recovery_mode_email_last_sent |
Browser metrics Passed 4 tests
An overview of browser requirements for Click to call button
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲66 | 13.36 ▼1.02 | 2.16 ▼0.01 | 48.76 ▲4.08 |
Dashboard /wp-admin | 2,229 ▲41 | 5.07 ▼0.79 | 109.84 ▼6.71 | 40.89 ▼3.22 |
Posts /wp-admin/edit.php | 2,117 ▲25 | 2.29 ▲0.24 | 42.41 ▲5.17 | 37.52 ▲2.33 |
Add New Post /wp-admin/post-new.php | 1,540 ▲6 | 18.63 ▼4.55 | 601.74 ▼62.54 | 34.23 ▼19.61 |
Media Library /wp-admin/upload.php | 1,414 ▲26 | 4.53 ▲0.34 | 104.22 ▲6.90 | 44.95 ▲1.96 |
Click to Call Button /wp-admin/options-general.php?page=click-to-call-button | 696 | 1.65 | 7.98 | 21.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- recovery_mode_email_last_sent
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% 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
- > GET request to /wp-admin/options-general.php?page=click-to-call-button
- > Error in wp-content/plugins/click-to-call-button/includes/functions_and_options.php+55
Uncaught Error: Cannot use string offset as an array in wp-content/plugins/click-to-call-button/includes/functions_and_options.php:55
Stack trace:
#0 wp-content/plugins/click-to-call-button/admin/ctcb_admin.php(19): ctcb_get_options()
#1 wp-includes/class-wp-hook.php(310): ctcb_admin_panel()
#2 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#3 wp-includes/plugin.php(517): WP_Hook->do_action()
#4 wp-admin/admin.php(259): do_action()
#5 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#6 {main}
thrown
SRP 50% 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
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/click-to-call-button/includes/ctcb_public_facing.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/click-to-call-button/includes/functions_and_options.php:96
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/click-to-call-button/includes/ctcb_callback_handlers.php:294
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/click-to-call-button/admin/ctcb_admin.php:465
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/click-to-call-button/click-to-call-button-plugin.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
- Screenshots: No descriptions were found for these screenshots #10, #11, #12, #13, #14, #15, #16, #17, #18, #8, #9 in click-to-call-button/assets to your readme.txt
click-to-call-button/click-to-call-button-plugin.php 85% from 13 tests
The primary PHP file in "Click to call button" version 0.0.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 259 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("click-to-call-button.php" instead of "click-to-call-button-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,108 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 252 | 217 | 1,104 |
JavaScript | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 9.33 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 9 | 52.94% |
▷ Public methods | 15 | 88.24% |
▷ Protected methods | 1 | 5.88% |
▷ Private methods | 1 | 5.88% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/phone-icon-ready.png | 0.81KB | 0.49KB | ▼ 39.06% |
images/phone-icon-active.png | 0.93KB | 0.55KB | ▼ 41.10% |