Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼6.40ms] Passed 4 tests
Analyzing server-side resources used by Gumroad
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 35.60 ▼6.73 |
Dashboard /wp-admin | 3.35 ▲0.05 | 46.59 ▼3.14 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 53.63 ▼0.87 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 86.84 ▼14.85 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.05 ▲0.86 |
Gumroad /wp-admin/options-general.php?page=gumroad | 3.25 | 33.15 |
Server storage [IO: ▲8.12MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Gumroad
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲57 | 14.28 ▼0.25 | 1.58 ▼0.04 | 39.83 ▼0.40 |
Dashboard /wp-admin | 2,199 ▲22 | 5.62 ▲0.04 | 85.34 ▼1.33 | 35.91 ▼8.62 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.03 ▲0.00 | 35.56 ▲1.33 | 35.80 ▼1.05 |
Add New Post /wp-admin/post-new.php | 6,201 ▲4,675 | 19.24 ▼4.39 | 931.73 ▲253.88 | 70.98 ▲16.43 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.10 ▼0.09 | 113.25 ▲12.92 | 46.78 ▲4.13 |
Gumroad /wp-admin/options-general.php?page=gumroad | 1,109 | 2.00 | 26.97 | 36.08 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
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 shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: embed, gumroad overlay, ecommerce, gumroad, javascript...
gumroad/gumroad.php 85% from 13 tests
"Gumroad" version 3.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Domain Path: The domain path folder was not found ("/languages/")
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
No dangerous file extensions were detected583 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 117 | 240 | 319 |
JavaScript | 3 | 25 | 50 | 216 |
JSON | 2 | 0 | 0 | 17 |
Sass | 2 | 1 | 0 | 16 |
CSS | 3 | 0 | 11 | 15 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 11 | |
▷ Static methods | 3 | 27.27% |
▷ Public methods | 9 | 81.82% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 18.18% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.68MB with 0.48MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 45.75KB | 15.63KB | ▼ 65.84% |
assets/screenshot-2.png | 155.76KB | 57.88KB | ▼ 62.84% |
assets/icon-128x128.png | 10.16KB | 2.78KB | ▼ 72.69% |
assets/images/gumroad-wp-003.png | 50.76KB | 13.14KB | ▼ 74.11% |
assets/images/gumroad-wp-007.png | 106.61KB | 23.94KB | ▼ 77.55% |