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.13MB] [CPU: ▼9.27ms] Passed 4 tests
Server-side resources used by Lead Call Buttons
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 37.40 ▼5.11 |
Dashboard /wp-admin | 3.43 ▲0.12 | 43.55 ▼10.69 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 48.63 ▼2.26 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 79.73 ▼19.00 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 34.25 ▼1.88 |
Lead Call Buttons /wp-admin/options-general.php?page=lead_call_buttons | 3.32 | 30.70 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Lead Call Buttons
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,915 ▲180 | 13.70 ▼0.67 | 9.28 ▲7.34 | 38.15 ▼5.53 |
Dashboard /wp-admin | 2,216 ▲28 | 5.12 ▲0.17 | 113.60 ▼3.13 | 43.87 ▼3.21 |
Posts /wp-admin/edit.php | 2,110 ▲24 | 2.30 ▲0.25 | 35.22 ▼1.23 | 29.78 ▼2.13 |
Add New Post /wp-admin/post-new.php | 6,460 ▲4,946 | 20.31 ▲2.81 | 899.61 ▲223.54 | 58.05 ▲7.44 |
Media Library /wp-admin/upload.php | 1,411 ▲23 | 4.24 ▲0.01 | 95.99 ▲0.18 | 40.66 ▼0.31 |
Lead Call Buttons /wp-admin/options-general.php?page=lead_call_buttons | 1,023 | 2.14 | 39.13 | 29.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to a member function get_queried_object_id() on null in wp-content/plugins/lead-call-buttons/lead-call-buttons.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lead-call-buttons/plugin-main.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 18 tag instead of maximum 10
lead-call-buttons/plugin-main.php 85% from 13 tests
"Lead Call Buttons" version 1.0.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 147 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("lead-call-buttons.php" instead of "plugin-main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin798 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 81 | 17 | 662 |
JavaScript | 2 | 8 | 0 | 94 |
CSS | 3 | 8 | 1 | 42 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 24.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 3.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin