Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.19MB] [CPU: ▼5.83ms] Passed 4 tests
An overview of server-side resources used by First Purchase Discount for WooCommerce - The Ultimate First Order Discount Promotion Solution
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 42.18 ▲1.43 |
Dashboard /wp-admin | 3.54 ▲0.24 | 47.49 ▼0.49 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 45.70 ▼6.72 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.24 | 85.13 ▼17.53 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 38.61 ▲7.06 |
Server storage [IO: ▲3.84MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 64 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_woocommerce_first_purchase |
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for First Purchase Discount for WooCommerce - The Ultimate First Order Discount Promotion Solution
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲72 | 13.19 ▼1.21 | 1.68 ▼0.59 | 43.34 ▼6.18 |
Dashboard /wp-admin | 2,239 ▲48 | 5.88 ▲0.82 | 104.55 ▼2.50 | 43.83 ▼0.82 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 2.05 ▲0.09 | 38.10 ▼6.13 | 31.72 ▼6.74 |
Add New Post /wp-admin/post-new.php | 1,551 ▲37 | 23.40 ▲5.80 | 672.66 ▲42.89 | 64.77 ▲16.16 |
Media Library /wp-admin/upload.php | 1,414 ▲23 | 4.29 ▲0.09 | 92.82 ▼9.86 | 41.33 ▼3.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/first-purchase-discount-for-woocommerce/includes/templates/popup-display-template.php:8
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Tags: You are using too many tags: 17 tag instead of maximum 10
first-purchase-discount-for-woocommerce/woocommerce-first-purchase-discount.php 85% from 13 tests
Analyzing the main PHP file in "First Purchase Discount for WooCommerce - The Ultimate First Order Discount Promotion Solution" version 1.0.0
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 158 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("first-purchase-discount-for-woocommerce.php" instead of "woocommerce-first-purchase-discount.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin5,435 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 4 | 0 | 12 | 2,908 |
PHP | 9 | 286 | 212 | 1,329 |
CSS | 4 | 34 | 427 | 848 |
JavaScript | 4 | 108 | 129 | 329 |
Markdown | 2 | 7 | 0 | 21 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
Average class complexity | 6.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 57 | |
▷ Static methods | 7 | 12.28% |
▷ Public methods | 57 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
14 PNG files occupy 0.40MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/popupstyle2.png | 26.88KB | 9.41KB | ▼ 64.99% |
includes/emails/images/bottom.png | 1.18KB | 0.41KB | ▼ 65.76% |
includes/assets/images/backgroundblue.png | 47.09KB | 31.59KB | ▼ 32.92% |
admin/assets/images/header-logo.png | 3.36KB | 0.95KB | ▼ 71.84% |
includes/emails/images/top.png | 1.28KB | 0.33KB | ▼ 74.52% |