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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.28MB] [CPU: ▼2.66ms] Passed 4 tests
An overview of server-side resources used by Dispensary Coupons
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 48.26 ▲4.63 |
Dashboard /wp-admin | 3.62 ▲0.31 | 49.49 ▼3.46 |
Posts /wp-admin/edit.php | 3.67 ▲0.32 | 52.61 ▼3.34 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 94.96 ▼8.46 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 42.68 ▲4.88 |
Coupons /wp-admin/edit.php?post_type=coupons | 3.52 | 44.86 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
widget_wpd_coupons_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Dispensary Coupons
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲64 | 13.43 ▼0.92 | 1.71 ▼0.13 | 41.51 ▼3.80 |
Dashboard /wp-admin | 2,214 ▲26 | 5.86 ▲0.95 | 104.27 ▼0.84 | 38.63 ▼5.71 |
Posts /wp-admin/edit.php | 2,097 ▲5 | 2.05 ▲0.04 | 39.63 ▲2.00 | 35.46 ▲0.91 |
Add New Post /wp-admin/post-new.php | 1,672 ▲158 | 21.89 ▲4.42 | 674.26 ▲3.87 | 58.41 ▲2.77 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.18 ▲0.00 | 100.46 ▼0.66 | 43.39 ▼4.84 |
Coupons /wp-admin/edit.php?post_type=coupons | 1,066 | 1.99 | 31.99 | 31.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_wpd_coupons_widget
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/dispensary-coupons/inc/class-dispensary-coupons-permalinks.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: weed, marijuana, mmj, discounts, coupons...
dispensary-coupons/dispensary-coupons.php 85% from 13 tests
The main PHP script in "Dispensary Coupons" version 2.0 is automatically included on every request by WordPress
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Description: Keep the plugin description shorter than 140 characters (currently 239 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,321 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 225 | 271 | 1,130 |
CSS | 2 | 36 | 23 | 102 |
Markdown | 2 | 43 | 0 | 89 |
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.20 |
Average class complexity | 6.30 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 49 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/menu-icon.png | 0.28KB | 0.23KB | ▼ 17.65% |