Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼3.76ms] Passed 4 tests
An overview of server-side resources used by All-in-one contact buttons - WPSHARE247
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 52.67 ▲4.51 |
Dashboard /wp-admin | 3.38 ▲0.08 | 44.88 ▼6.35 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 50.33 ▼0.82 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 82.11 ▼10.22 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.87 ▲2.35 |
Configure Aio Contact /wp-admin/options-general.php?page=ws247-aio-ct-button-options | 3.39 | 37.86 |
Server storage [IO: ▲4.40MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for All-in-one contact buttons - WPSHARE247
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,849 ▲92 | 13.31 ▼1.06 | 2.43 ▲0.09 | 38.79 ▼10.77 |
Dashboard /wp-admin | 2,229 ▲38 | 5.08 ▼0.78 | 112.36 ▲3.87 | 40.56 ▼2.32 |
Posts /wp-admin/edit.php | 2,117 ▲25 | 2.31 ▲0.30 | 42.97 ▲3.20 | 35.26 ▲1.48 |
Add New Post /wp-admin/post-new.php | 1,531 ▲1 | 21.41 ▲3.16 | 643.10 ▲35.13 | 35.96 ▼12.48 |
Media Library /wp-admin/upload.php | 1,405 ▲20 | 4.40 ▲0.20 | 99.45 ▼5.77 | 43.32 ▼2.95 |
Configure Aio Contact /wp-admin/options-general.php?page=ws247-aio-ct-button-options | 1,627 | 2.64 | 61.64 | 32.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
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)
Even though everything seems fine, this is not 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
Please fix the following
- 6× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant WS247_AIO_CT_BUTTON_SETTING_PAGE_SLUG - assumed 'WS247_AIO_CT_BUTTON_SETTING_PAGE_SLUG' (this will throw an Error in a future version of PHP) in wp-content/plugins/all-in-one-contact-buttons-wpshare247/inc/class.setting.page.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/all-in-one-contact-buttons-wpshare247/inc/class.setting.page.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/all-in-one-contact-buttons-wpshare247/inc/option-form-template.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/all-in-one-contact-buttons-wpshare247/inc/define.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/all-in-one-contact-buttons-wpshare247/inc/theme_functions.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/all-in-one-contact-buttons-wpshare247/inc/tabs/tab_pro_general.php:7
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
Attributes that need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== all-in-one-contact-buttons-wpshare247 ===
) - Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
all-in-one-contact-buttons-wpshare247/all-in-one-contact-buttons-wpshare247.php 92% from 13 tests
The principal PHP file in "All-in-one contact buttons - WPSHARE247" v. 1.0.4 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected13,288 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 15 | 3,413 | 61 | 8,029 |
SVG | 3 | 0 | 12 | 4,479 |
PHP | 7 | 103 | 38 | 724 |
PO File | 1 | 19 | 1 | 53 |
JavaScript | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 3.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.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 | 15 | |
▷ Static methods | 2 | 13.33% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 7 | 87.50% |
▷ Class constants | 1 | 12.50% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.04MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/messenger.png | 15.51KB | 0.80KB | ▼ 94.81% |
assets/zalo.png | 21.82KB | 2.27KB | ▼ 89.61% |