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.02MB] [CPU: ▼3.02ms] Passed 4 tests
An overview of server-side resources used by JCWP Add Quote button in product page
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 52.78 ▲14.01 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.17 ▼1.95 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 48.46 ▼1.86 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 90.49 ▼9.18 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.87 ▲0.92 |
Quote button Configuration /wp-admin/options-general.php?page=jcwp-quote-button-in-product-page | 3.21 | 33.39 |
Server storage [IO: ▲1.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for JCWP Add Quote button in product page
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.23 ▼1.15 | 1.73 ▲0.01 | 38.53 ▼6.20 |
Dashboard /wp-admin | 2,210 ▲22 | 5.85 ▲0.95 | 107.52 ▲0.04 | 38.73 ▼3.87 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 1.99 ▼0.05 | 42.09 ▲0.71 | 34.72 ▼0.98 |
Add New Post /wp-admin/post-new.php | 1,536 ▲17 | 23.04 ▼0.14 | 666.39 ▲48.55 | 70.07 ▲17.42 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.31 ▲0.04 | 95.45 ▲0.65 | 41.90 ▲2.88 |
Quote button Configuration /wp-admin/options-general.php?page=jcwp-quote-button-in-product-page | 868 | 2.03 | 22.23 | 27.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: quote button, woocommerce, whatsapp
jcwp-add-quote-button-in-product-page/jcwp-add-quote-button-in-product-page.php 92% from 13 tests
"JCWP Add Quote button in product page" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin156 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 17 | 15 | 154 |
CSS | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.95MB with 0.52MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon-128x128.png | 4.62KB | 2.10KB | ▼ 54.65% |
assets/screenshot-2.png | 300.52KB | 76.76KB | ▼ 74.46% |
assets/banner-772x250-assets/banner-772x250.png | 123.99KB | 64.03KB | ▼ 48.36% |
assets/screenshot-3.png | 125.47KB | 36.71KB | ▼ 70.75% |
img/jcwp-quote-icon.png | 3.06KB | 2.22KB | ▼ 27.33% |