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.66MB] [CPU: ▼17.04ms] Passed 4 tests
This is a short check of server-side resources used by Coupon API
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 47.15 ▲7.27 |
Dashboard /wp-admin | 3.35 ▼0.00 | 49.90 ▼11.73 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 58.29 ▲11.91 |
Add New Post /wp-admin/post-new.php | 3.16 ▼2.73 | 41.42 ▼69.00 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 40.47 ▲5.31 |
Settings /wp-admin/admin.php?page=couponapi | 3.24 | 38.70 |
Coupon Custom Template /wp-admin/admin.php?page=couponapi-custom-template | 3.30 | 41.35 |
Brandlogos /wp-admin/admin.php?page=couponapi-brandlogos-settings | 3.22 | 37.98 |
Troubleshoot /wp-admin/admin.php?page=couponapi-troubleshoot | 3.24 | 34.11 |
Logs /wp-admin/admin.php?page=couponapi-logs | 3.23 | 36.57 |
CSV Upload /wp-admin/admin.php?page=couponapi-file-upload | 3.23 | 36.60 |
Server storage [IO: ▲1.26MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 44 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_couponapi_config |
wp_couponapi_upload |
wp_couponapi_logs |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
couponapi_updated_to_4_point_2_point_1 |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Coupon API
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲82 | 14.29 ▼0.05 | 1.68 ▼0.01 | 45.20 ▲1.43 |
Dashboard /wp-admin | 2,237 ▲56 | 5.55 ▼0.14 | 85.59 ▼19.52 | 39.34 ▼5.79 |
Posts /wp-admin/edit.php | 2,139 ▲42 | 2.00 ▲0.04 | 39.85 ▲3.90 | 39.10 ▲4.92 |
Add New Post /wp-admin/post-new.php | 1,557 ▲31 | 23.30 ▲0.05 | 601.01 ▼34.15 | 52.26 ▼8.22 |
Media Library /wp-admin/upload.php | 1,439 ▲42 | 4.19 ▼0.03 | 94.30 ▼4.22 | 42.66 ▲1.74 |
Settings /wp-admin/admin.php?page=couponapi | 1,331 | 1.90 | 31.93 | 82.88 |
Coupon Custom Template /wp-admin/admin.php?page=couponapi-custom-template | 1,647 | 7.00 | 152.37 | 77.09 |
Brandlogos /wp-admin/admin.php?page=couponapi-brandlogos-settings | 837 | 1.90 | 27.71 | 32.41 |
Troubleshoot /wp-admin/admin.php?page=couponapi-troubleshoot | 950 | 1.89 | 25.65 | 38.56 |
Logs /wp-admin/admin.php?page=couponapi-logs | 893 | 1.90 | 28.52 | 37.74 |
CSV Upload /wp-admin/admin.php?page=couponapi-file-upload | 862 | 1.89 | 26.69 | 35.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- couponapi_updated_to_4_point_2_point_1
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
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)
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files
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 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (Coupon API Settings), #2 (Manual CSV Import), #3 (Process Logs), #4 (Automatic configuration checks)
couponapi/couponapi.php Passed 13 tests
"Coupon API" version 6.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
104 characters long description:
Automatically import Coupons & Deals from popular Affiliate Networks into your WordPress Coupon Website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin7,220 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 902 | 214 | 4,330 |
PO File | 6 | 888 | 936 | 2,553 |
SVG | 1 | 0 | 0 | 288 |
JavaScript | 3 | 1 | 7 | 39 |
CSS | 2 | 1 | 7 | 10 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 79 | |
▷ Named functions | 78 | 98.73% |
▷ Anonymous functions | 1 | 1.27% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
4 PNG files occupy 0.38MB with 0.24MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 102.50KB | 38.66KB | ▼ 62.29% |
screenshot-1.png | 90.22KB | 30.79KB | ▼ 65.88% |
screenshot-2.png | 26.56KB | 10.22KB | ▼ 61.51% |
screenshot-3.png | 173.27KB | 64.03KB | ▼ 63.05% |