Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.11ms] Passed 4 tests
This is a short check of server-side resources used by Call Now - Group Contact Buttons - PHT Blog
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 47.65 ▲4.58 |
Dashboard /wp-admin | 3.39 ▲0.09 | 47.22 ▼3.86 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 49.58 ▼3.82 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 95.83 ▼8.14 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 36.85 ▼0.63 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Call Now - Group Contact Buttons - PHT Blog
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,862 ▲116 | 14.81 ▲0.13 | 2.78 ▲0.69 | 42.79 ▲3.56 |
Dashboard /wp-admin | 2,225 ▲43 | 4.87 ▼0.95 | 105.77 ▼1.06 | 39.41 ▼2.07 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.01 ▲0.01 | 35.27 ▼8.28 | 34.96 ▼3.08 |
Add New Post /wp-admin/post-new.php | 1,546 ▲8 | 23.22 ▼0.08 | 639.05 ▼14.93 | 57.53 ▲2.98 |
Media Library /wp-admin/upload.php | 1,398 ▲10 | 4.21 ▲0.06 | 100.46 ▼3.27 | 45.29 ▼2.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 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)
The smoke test was a success, however most plugin functionality was not tested
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× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/group-contact-buttons-pht-blog/group-contact-buttons.php:13
- > 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 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tags: Please delete some tags, you are using 18 tag instead of maximum 10
group-contact-buttons-pht-blog/group-contact-buttons.php 77% from 13 tests
The main file in "Call Now - Group Contact Buttons - PHT Blog" v. 2.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: Please keep the plugin description shorter than 140 characters (currently 215 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("group-contact-buttons-pht-blog.php" instead of "group-contact-buttons.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
Good job! No executable or dangerous file extensions detected1,189 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 39 | 64 | 690 |
PHP | 1 | 24 | 31 | 476 |
JavaScript | 1 | 8 | 2 | 23 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
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 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
13 PNG files occupy 0.28MB with 0.18MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
image/email.png | 71.06KB | 24.98KB | ▼ 64.84% |
image/zalo.png | 66.18KB | 22.17KB | ▼ 66.51% |
image/phone.png | 11.51KB | 5.37KB | ▼ 53.33% |
image/support.png | 5.89KB | 1.94KB | ▼ 66.98% |
image/skype.png | 36.72KB | 15.68KB | ▼ 57.29% |