Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼6.64ms] Passed 4 tests
A check of server-side resources used by Click to Call Button
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 33.63 ▼3.40 |
Dashboard /wp-admin | 3.33 ▼0.02 | 41.51 ▼13.74 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.93 ▲4.43 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 82.09 ▼13.86 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.24 ▲4.56 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Click to Call Button: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,913 ▲151 | 13.47 ▼1.27 | 7.94 ▲6.24 | 39.95 ▼2.57 |
Dashboard /wp-admin | 2,228 ▲57 | 5.81 ▲0.28 | 97.15 ▲6.71 | 41.98 ▲2.71 |
Posts /wp-admin/edit.php | 2,138 ▲38 | 2.31 ▲0.28 | 51.68 ▲16.72 | 39.17 ▲3.64 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 23.20 ▼0.46 | 688.47 ▲96.38 | 36.32 ▼22.08 |
Media Library /wp-admin/upload.php | 1,427 ▲24 | 4.49 ▲0.35 | 98.35 ▼3.06 | 40.49 ▼0.78 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests Passed 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)
Good news, no errors were detected
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: button, float, basic, wp, phone
small-phone-button-basic/dg2-phone-button.php 85% from 13 tests
This is the main PHP file of "Click to Call Button" version 1.1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("small-phone-button-basic.php" instead of "dg2-phone-button.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
There were no executable files found in this plugin1,130 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 295 | 195 | 1,049 |
CSS | 2 | 6 | 0 | 68 |
SVG | 7 | 0 | 0 | 7 |
JSON | 1 | 0 | 0 | 5 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 18.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 71 | |
▷ Static methods | 20 | 28.17% |
▷ Public methods | 68 | 95.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 4.23% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
No PNG files were detected