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.32MB] [CPU: ▲1.93ms] Passed 4 tests
Server-side resources used by WP Call Button - Easy Click to Call Button for WordPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 42.41 ▼1.37 |
Dashboard /wp-admin | 3.66 ▲0.35 | 63.26 ▲14.03 |
Posts /wp-admin/edit.php | 3.77 ▲0.41 | 52.30 ▲6.08 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.35 | 91.04 ▼1.14 |
Media Library /wp-admin/upload.php | 3.58 ▲0.35 | 38.51 ▲4.14 |
WP Call Button /wp-admin/options-general.php?page=wp-call-button | 3.62 | 34.58 |
Server storage [IO: ▲1.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 59 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
wp-call-button-settings |
widget_theysaidso_widget |
widget_wp-call-button-widget-main-a |
Browser metrics Passed 4 tests
A check of browser resources used by WP Call Button - Easy Click to Call Button for WordPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,894 ▲137 | 13.28 ▼0.86 | 1.74 ▼0.22 | 43.81 ▼2.79 |
Dashboard /wp-admin | 2,301 ▲116 | 5.93 ▲0.03 | 102.35 ▲0.85 | 45.03 ▲0.08 |
Posts /wp-admin/edit.php | 2,181 ▲92 | 2.09 ▼0.08 | 38.58 ▲1.91 | 34.40 ▼0.76 |
Add New Post /wp-admin/post-new.php | 6,267 ▲4,733 | 19.00 ▼4.24 | 919.51 ▲241.76 | 54.11 ▲0.45 |
Media Library /wp-admin/upload.php | 1,480 ▲89 | 4.25 ▲0.01 | 96.31 ▼3.24 | 41.96 ▼4.81 |
WP Call Button /wp-admin/options-general.php?page=wp-call-button | 2,979 | 3.83 | 58.92 | 49.08 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
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
Even though no errors were found, 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
Almost there! Just fix the following items
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/wp-call-button/views/admin_view-about.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Upgrader_Skin' not found in wp-content/plugins/wp-call-button/src/Plugin/WpAmPluginsInstallSkin.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-call-button/views/admin_view-static.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-call-button/src/Plugin/WpCallButtonWidget.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-call-button/views/activate_welcome_view.php:1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-call-button/views/admin_view-plugins-holder.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-call-button/views/admin_view.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/wp-call-button/views/admin_view-sticky.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: call me wordpress plugin, call, call now button, clickable phone numbers, call button...
wp-call-button/wp-call-button.php 92% from 13 tests
The entry point to "WP Call Button - Easy Click to Call Button for WordPress" version 1.4.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 144 characters long)
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 plugin3,799 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 13 | 199 | 249 | 1,708 |
PHP | 17 | 295 | 636 | 1,536 |
CSS | 5 | 38 | 11 | 508 |
Sass | 1 | 6 | 2 | 45 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 23.75 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 4.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 54 | |
▷ Static methods | 8 | 14.81% |
▷ Public methods | 52 | 96.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.70% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
13 PNG files occupy 0.45MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/flags@2x.png | 170.28KB | 68.04KB | ▼ 60.04% |
assets/img/plugin-rp.png | 24.50KB | 9.36KB | ▼ 61.79% |
assets/img/bottom-left.png | 2.65KB | 1.40KB | ▼ 47.13% |
assets/img/flags.png | 69.20KB | 23.42KB | ▼ 66.16% |
assets/img/plugin-wpf.png | 6.03KB | 6.28KB | 0.00% |