Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.11MB] [CPU: ▼6.79ms] Passed 4 tests
An overview of server-side resources used by Gumpress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 38.28 ▼6.50 |
Dashboard /wp-admin | 3.42 ▲0.08 | 48.14 ▼16.10 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 51.45 ▲1.74 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.12 | 98.30 ▼6.30 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 39.12 ▲6.30 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_gumroad_product_relationships |
New WordPress options |
---|
uilib_gumpress_version |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
uilib_gumpress_installed |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Gumpress: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,155 ▲409 | 14.88 ▲0.51 | 22.45 ▲20.72 | 44.11 ▲2.57 |
Dashboard /wp-admin | 2,244 ▲64 | 5.58 ▼0.10 | 88.63 ▼2.91 | 88.65 ▲37.00 |
Posts /wp-admin/edit.php | 2,149 ▲46 | 2.01 ▼0.03 | 40.11 ▼1.45 | 35.63 ▼0.88 |
Add New Post /wp-admin/post-new.php | 1,579 ▲34 | 22.70 ▼0.48 | 702.63 ▲37.22 | 50.96 ▼0.03 |
Media Library /wp-admin/upload.php | 1,443 ▲40 | 4.22 ▼0.14 | 104.81 ▲3.78 | 74.19 ▲29.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_gumroad_product_relationships
- This plugin does not fully uninstall, leaving 8 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- uilib_gumpress_installed
- widget_recent-posts
- widget_theysaidso_widget
- uilib_gumpress_version
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 | 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 _e() in wp-content/plugins/gumpress/includes/Admin/views/settings.php:2
- > PHP Fatal error
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 on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: gumroad store, gumroad checkout, woocommerce, gumroad
gumpress/gumpress.php 92% from 13 tests
"Gumpress" version 1.2.1'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: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected1,248 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 302 | 566 | 1,138 |
Markdown | 1 | 12 | 0 | 45 |
JavaScript | 1 | 2 | 0 | 21 |
JSON | 2 | 0 | 0 | 20 |
SVG | 1 | 0 | 0 | 19 |
CSS | 1 | 0 | 2 | 5 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 11.23 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 1 | 7.69% |
Methods | 75 | |
▷ Static methods | 19 | 25.33% |
▷ Public methods | 72 | 96.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 4.00% |
Functions | 12 | |
▷ Named functions | 11 | 91.67% |
▷ Anonymous functions | 1 | 8.33% |
Constants | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin