Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.22MB] [CPU: ▼18.20ms] Passed 4 tests
An overview of server-side resources used by Call Me Button for Call Center Online
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 37.99 ▲0.91 |
Dashboard /wp-admin | 3.43 ▲0.09 | 50.15 ▼16.15 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 52.35 ▲2.33 |
Add New Post /wp-admin/post-new.php | 4.72 ▼1.16 | 44.26 ▼59.87 |
Media Library /wp-admin/upload.php | 3.35 ▲0.13 | 42.63 ▲5.27 |
Call Center Online /wp-admin/options-general.php?page=cco_settings_page2 | 3.30 | 32.09 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
recovery_mode_email_last_sent |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Call Me Button for Call Center Online
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲82 | 13.62 ▼0.69 | 1.16 ▼0.55 | 54.08 ▲15.48 |
Dashboard /wp-admin | 2,223 ▲20 | 5.86 ▼0.04 | 134.46 ▲35.25 | 43.25 ▼1.90 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 1.98 ▼0.01 | 37.74 ▼1.28 | 33.14 ▼4.57 |
Add New Post /wp-admin/post-new.php | 1,399 ▼146 | 16.76 ▼6.31 | 560.41 ▼99.40 | 34.41 ▼26.60 |
Media Library /wp-admin/upload.php | 1,402 ▲2 | 4.19 ▼0.04 | 98.20 ▼16.00 | 42.82 ▼6.05 |
Call Center Online /wp-admin/options-general.php?page=cco_settings_page2 | 894 | 1.53 | 6.89 | 20.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- recovery_mode_email_last_sent
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=cco_settings_page2
- > Notice in wp-content/plugins/call-center-online/admin/cco-call-me-admin.php+282
Undefined variable: endpoint
- > GET request to /wp-admin/options-general.php?page=cco_settings_page2
- > Notice in wp-content/plugins/call-center-online/admin/cco-call-me-admin.php+292
Undefined variable: login
- > GET request to /wp-admin/options-general.php?page=cco_settings_page2
- > Notice in wp-content/plugins/call-center-online/admin/cco-call-me-admin.php+301
Undefined variable: password
- > GET request to /wp-admin/options-general.php?page=cco_settings_page2
- > Notice in wp-content/plugins/call-center-online/admin/cco-call-me-admin.php+309
Undefined variable: client_id
- > GET request to /wp-admin/options-general.php?page=cco_settings_page2
- > Notice in wp-content/plugins/call-center-online/admin/cco-call-me-admin.php+317
Undefined variable: client_secret
- > GET request to /wp-admin/options-general.php?page=cco_settings_page2
- > Notice in wp-content/plugins/call-center-online/admin/cco-call-me-admin.php+359
Undefined variable: text_success
- > GET request to /wp-admin/options-general.php?page=cco_settings_page2
- > Notice in wp-content/plugins/call-center-online/admin/cco-call-me-admin.php+368
Undefined variable: text_failed
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=cco_settings_page2
- > Notice in wp-content/plugins/call-center-online/admin/cco-call-me-admin.php+447
Undefined variable: button_position_x
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=cco_settings_page2
- > Notice in wp-content/plugins/call-center-online/admin/cco-call-me-admin.php+461
Undefined variable: button_position_y
- > GET request to /wp-admin/options-general.php?page=cco_settings_page2
- > Notice in wp-content/plugins/call-center-online/admin/cco-call-me-admin.php+410
Undefined variable: color
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=cco_settings_page2
- > Notice in wp-content/plugins/call-center-online/includes/api.php+23
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=cco_settings_page2
- > Error in wp-content/plugins/call-center-online/includes/api.php+37
Uncaught Error: Cannot use object of type WP_Error as array in wp-content/plugins/call-center-online/includes/api.php:37
Stack trace:
#0 wp-content/plugins/call-center-online/includes/api.php(45): cco_api->getToken()
#1 wp-content/plugins/call-center-online/admin/cco-call-me-admin.php(487): cco_api->getCampaigns()
#2 wp-admin/includes/template.php(1824): cco_call_me_admin->campaign_callback()
#3 wp-admin/includes/template.php(1778): do_settings_fields()
#4 wp-content/plugins/call-center-online/admin/cco-call-me-admin.php(51): do_settings_sections()
#5 wp-includes/class-wp-hook.php(310): cco_call_me_admin->create_page()
#6 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#7 wp-includes/plugin.php(517): WP_Hook->do_action()
#8 wp-admin/admin.php(259): do_action()
#9 wp-admin/options-general.php
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
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/call-center-online/admin/cco-call-me-admin.php:11
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=cco_settings_page2
- > Rendering (warning) in unknown
/wp-admin/options-general.php?page=cco_settings_page2 154 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Contributors: The plugin contributors field is missing
call-center-online/cco-call-me.php 92% from 13 tests
The primary PHP file in "Call Me Button for Call Center Online" version 1.0.3 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("call-center-online.php" instead of "cco-call-me.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin998 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 162 | 12 | 667 |
CSS | 1 | 22 | 3 | 197 |
JavaScript | 1 | 26 | 0 | 101 |
Markdown | 1 | 11 | 0 | 31 |
PO File | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 16.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 40 | 97.56% |
▷ Protected methods | 1 | 2.44% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 36 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 36 | 100.00% |
▷ Public constants | 36 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.11MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
image/logo-mini.png | 10.31KB | 1.70KB | ▼ 83.50% |
image/blue-button.png | 2.94KB | 1.49KB | ▼ 49.17% |
image/logo.png | 25.87KB | 7.08KB | ▼ 72.65% |
image/banner.png | 52.93KB | 15.81KB | ▼ 70.12% |
image/logo-button.png | 24.75KB | 1.68KB | ▼ 93.20% |