Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼141.70ms] Passed 4 tests
Analyzing server-side resources used by Coupon Maker
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 33.61 ▲12.73 |
Dashboard /wp-admin | 3.06 ▲0.01 | 42.51 ▼5.14 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 45.18 ▲1.34 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 90.39 ▼561.77 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 30.26 ▼1.21 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Coupon Maker
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 15.74 ▲0.23 | 9.33 ▲0.34 | 49.31 ▲1.61 |
Dashboard /wp-admin | 2,970 ▲36 | 5.93 ▼0.19 | 133.38 ▼8.74 | 105.46 ▼5.35 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▲0.00 | 65.95 ▲0.88 | 90.96 ▼0.20 |
Add New Post /wp-admin/post-new.php | 1,672 ▼11 | 18.87 ▲0.06 | 365.80 ▼9.55 | 101.95 ▼2.80 |
Media Library /wp-admin/upload.php | 1,810 ▼0 | 5.05 ▼0.02 | 151.94 ▲6.26 | 112.78 ▲0.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 5× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/coupon-maker/includes/class-coupon-maker-loader.php
- > /wp-content/plugins/coupon-maker/coupon-maker.php
- > /wp-content/plugins/coupon-maker/public/partials/coupon-maker-public-display.php
- > /wp-content/plugins/coupon-maker/public/class-coupon-maker-public.php
- > /wp-content/plugins/coupon-maker/includes/class-coupon-maker.php
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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
3 plugin tags: code, generator, coupon
coupon-maker/coupon-maker.php 92% from 13 tests
Analyzing the main PHP file in "Coupon Maker" version 1.0.0
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 159 characters long)
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 plugin330 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 100 | 431 | 186 |
CSS | 1 | 15 | 8 | 113 |
JavaScript | 1 | 4 | 6 | 31 |
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.08 |
Average class complexity | 1.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 77.27% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 22.73% |
Functions | 1 | |
▷ Named functions | 1 | 100.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 Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 1.26KB | 1.02KB | ▼ 19.23% |
screenshot-1.png | 3.94KB | 2.38KB | ▼ 39.55% |