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
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼5.41ms] Passed 4 tests
A check of server-side resources used by Button contact VR
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 46.50 ▲4.50 |
Dashboard /wp-admin | 3.44 ▲0.09 | 49.91 ▼7.77 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 43.58 ▼3.22 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 79.87 ▼14.57 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 36.92 ▲3.92 |
Showroom /wp-admin/admin.php?page=contact_vr_showroom | 3.35 | 34.68 |
Button contact /wp-admin/admin.php?page=contact_vr | 3.34 | 36.19 |
Contact form /wp-admin/admin.php?page=contact_vr_contact_form | 3.35 | 30.02 |
Setting /wp-admin/admin.php?page=contact_vr_setting | 3.33 | 32.53 |
All in one /wp-admin/admin.php?page=contact_vr_all_in_one | 3.34 | 32.34 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Button contact VR
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,906 ▲145 | 14.69 ▲0.08 | 2.13 ▲0.41 | 43.53 ▲0.11 |
Dashboard /wp-admin | 2,257 ▲80 | 5.76 ▲0.14 | 96.84 ▲9.35 | 84.08 ▲45.23 |
Posts /wp-admin/edit.php | 2,164 ▲64 | 2.31 ▲0.29 | 36.11 ▲1.00 | 34.16 ▲0.35 |
Add New Post /wp-admin/post-new.php | 1,576 ▲50 | 23.24 ▼0.53 | 700.31 ▼8.04 | 36.00 ▼24.00 |
Media Library /wp-admin/upload.php | 1,462 ▲62 | 4.33 ▲0.15 | 106.60 ▲10.95 | 80.39 ▲36.01 |
Showroom /wp-admin/admin.php?page=contact_vr_showroom | 1,730 | 9.98 | 210.84 | 52.36 |
Button contact /wp-admin/admin.php?page=contact_vr | 1,725 | 2.96 | 61.88 | 29.39 |
Contact form /wp-admin/admin.php?page=contact_vr_contact_form | 1,380 | 8.72 | 250.42 | 53.54 |
Setting /wp-admin/admin.php?page=contact_vr_setting | 1,032 | 1.87 | 26.12 | 30.54 |
All in one /wp-admin/admin.php?page=contact_vr_all_in_one | 1,146 | 2.51 | 38.19 | 33.38 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
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 no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/button-contact-vr/inc/contact-form.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/button-contact-vr/inc/all-in-one.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/button-contact-vr/inc/admin.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/button-contact-vr/inc/setting.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/button-contact-vr/inc/showroom.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Donate link: Please fix this invalid URI: "paypal.me/virustran"
- Screenshots: A description for screenshot #5 is required in button-contact-vr/assets to your readme.txt
button-contact-vr/button-contact-vr.php Passed 13 tests
"Button contact VR" version 4.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
77 characters long description:
Button contact call, zalo, whatsapp, messenger, popup form, popup showroom...
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
Success! There were no dangerous files found in this plugin1,345 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 87 | 45 | 1,331 |
CSS | 2 | 0 | 0 | 11 |
JavaScript | 1 | 0 | 1 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 58.00 |
▷ Minimum class complexity | 58.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 10.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 6 | |
▷ Static methods | 1 | 16.67% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
21 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/youtube.png | 1.95KB | 1.16KB | ▼ 40.58% |
img/phone.png | 0.93KB | 0.37KB | ▼ 59.98% |
img/viber.png | 13.13KB | 2.60KB | ▼ 80.18% |
img/contact.png | 4.50KB | 1.92KB | ▼ 57.36% |
img/zalo.png | 3.90KB | 0.38KB | ▼ 90.35% |