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.09MB] [CPU: ▼5.21ms] Passed 4 tests
Analyzing server-side resources used by Click to Call or Chat Buttons
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 40.90 ▼1.34 |
Dashboard /wp-admin | 3.40 ▲0.10 | 49.11 ▼3.03 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 47.82 ▼5.26 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 97.40 ▼10.07 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 33.92 ▼2.48 |
Click to Call or Chat Buttons /wp-admin/options-general.php?page=ctcocb | 3.30 | 33.24 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
ctcocb |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Click to Call or Chat Buttons
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 14.79 ▲0.40 | 1.99 ▼0.03 | 42.57 ▲1.98 |
Dashboard /wp-admin | 2,213 ▲25 | 5.89 ▲0.07 | 98.22 ▼17.05 | 40.46 ▼6.48 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.03 ▼0.03 | 34.51 ▼6.58 | 36.09 ▼0.06 |
Add New Post /wp-admin/post-new.php | 1,545 ▲12 | 17.98 ▼5.47 | 631.92 ▼31.14 | 55.47 ▲5.48 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.18 ▲0.01 | 99.17 ▼2.37 | 41.99 ▼2.38 |
Click to Call or Chat Buttons /wp-admin/options-general.php?page=ctcocb | 2,357 | 2.81 | 76.94 | 35.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- ctcocb
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/click-to-call-or-chat-buttons/ctcocb.php:33
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: contact bottom button, call now button, phone whatsapp button, click to call chat, call us button
click-to-call-or-chat-buttons/ctcocb.php 92% from 13 tests
The primary PHP file in "Click to Call or Chat Buttons" version 1.5.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("click-to-call-or-chat-buttons.php" instead of "ctcocb.php")
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
Success! There were no dangerous files found in this plugin593 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 49 | 28 | 556 |
CSS | 1 | 3 | 0 | 30 |
JavaScript | 1 | 2 | 0 | 7 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin