Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼143.53ms] Passed 4 tests
An overview of server-side resources used by ThisCallButton
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 31.34 ▲8.69 |
Dashboard /wp-admin | 3.10 ▲0.04 | 45.04 ▲2.09 |
Posts /wp-admin/edit.php | 3.15 ▲0.04 | 46.63 ▲1.19 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.03 | 88.45 ▼574.60 |
Media Library /wp-admin/upload.php | 3.04 ▲0.03 | 35.24 ▼2.80 |
This Call Button /wp-admin/options-general.php?page=thiscallbutton_setting_menu | 2.99 | 28.38 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
ThisCallButton: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲88 | 15.83 ▲0.26 | 10.55 ▲1.97 | 48.17 ▼1.74 |
Dashboard /wp-admin | 2,975 ▲44 | 6.07 ▼0.06 | 136.79 ▼5.80 | 106.25 ▼16.61 |
Posts /wp-admin/edit.php | 2,744 ▲8 | 2.72 ▲0.00 | 64.62 ▼0.98 | 94.26 ▼1.65 |
Add New Post /wp-admin/post-new.php | 1,686 ▲71 | 18.75 ▼2.60 | 371.43 ▲105.79 | 109.13 ▲10.94 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.02 ▼0.01 | 150.57 ▲6.75 | 113.29 ▼14.81 |
This Call Button /wp-admin/options-general.php?page=thiscallbutton_setting_menu | 1,092 | 2.10 | 57.25 | 78.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=thiscallbutton_setting_menu
- > Notice in wp-content/plugins/this-call-button/thiscallbutton.php+121
Undefined variable: text
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/this-call-button/thiscallbutton.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: idd calls, call button
this-call-button/thiscallbutton.php 77% from 13 tests
The principal PHP file in "ThisCallButton" v. 1.20 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("this-call-button.php" instead of "thiscallbutton.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: The description should be shorter than 140 characters (currently 218 characters long)
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
No dangerous file extensions were detected143 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 39 | 25 | 143 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
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 | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin