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
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼3.22ms] Passed 4 tests
This is a short check of server-side resources used by OneClick WP Hello
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.15 | 49.23 ▲9.45 |
Dashboard /wp-admin | 3.48 ▲0.13 | 52.92 ▼1.82 |
Posts /wp-admin/edit.php | 3.59 ▲0.19 | 51.44 ▲0.94 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.13 | 91.13 ▼12.92 |
Media Library /wp-admin/upload.php | 3.40 ▲0.13 | 37.49 ▲0.93 |
Server storage [IO: ▲2.47MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
OneClick WP Hello: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲56 | 14.20 ▼0.52 | 1.88 ▲0.23 | 43.26 ▲2.04 |
Dashboard /wp-admin | 2,205 ▲31 | 5.76 ▲0.18 | 86.20 ▼4.40 | 81.08 ▲40.76 |
Posts /wp-admin/edit.php | 2,125 ▲22 | 2.01 ▲0.01 | 34.15 ▼3.58 | 34.90 ▼3.30 |
Add New Post /wp-admin/post-new.php | 1,555 ▲29 | 18.18 ▼4.83 | 689.95 ▲29.51 | 61.94 ▼0.07 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.08 ▼0.15 | 103.85 ▼18.52 | 81.33 ▲33.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests Passed 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 Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: whatsapp, product, woocommerce, contact, whatsapp contact...
oneclick-whatsapp-hello/whatsapp-hello.php 85% from 13 tests
"OneClick WP Hello" version 0.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("oneclick-whatsapp-hello.php" instead of "whatsapp-hello.php")
- Description: Keep the plugin description shorter than 140 characters (currently 216 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected8,967 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 2 | 0 | 8 | 7,812 |
PHP | 6 | 56 | 71 | 666 |
CSS | 4 | 10 | 0 | 258 |
PO File | 1 | 88 | 166 | 231 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 75.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 25.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
9 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/shortcode.png | 5.05KB | 2.18KB | ▼ 56.80% |
assets/images/whatsapp-menu.png | 0.91KB | 0.66KB | ▼ 27.05% |
assets/images/simple-whatsapp-button.png | 5.30KB | 2.32KB | ▼ 56.11% |
assets/images/display-this-or-hide-that.png | 4.80KB | 2.05KB | ▼ 57.38% |
assets/images/whatsapp-icon.png | 0.79KB | 0.98KB | 0.00% |