Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.73ms] Passed 4 tests
Server-side resources used by MyStem EDD
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.04 ▼3.74 |
Dashboard /wp-admin | 3.31 ▲0.01 | 49.37 ▼4.22 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 52.05 ▲0.33 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 86.50 ▼21.40 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.70 ▼1.56 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
MyStem EDD: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲84 | 13.16 ▼1.27 | 1.96 ▲0.31 | 43.97 ▲3.11 |
Dashboard /wp-admin | 2,208 ▲23 | 5.80 ▼0.01 | 99.85 ▼14.37 | 40.85 ▼2.84 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.04 | 34.10 ▼3.26 | 38.33 ▲3.69 |
Add New Post /wp-admin/post-new.php | 1,547 ▲28 | 18.59 ▼4.56 | 624.96 ▼60.97 | 57.92 ▼3.41 |
Media Library /wp-admin/upload.php | 1,396 ▲11 | 4.22 ▼0.01 | 97.87 ▼14.37 | 40.82 ▼8.47 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 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
Please fix the following
- 17× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function dynamic_sidebar() in wp-content/plugins/mystem-edd/single-template/sidebar-single.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function dynamic_sidebar() in wp-content/plugins/mystem-edd/page-templates/sidebar-member.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mystem-edd/template/grid-without-sidebar.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mystem-edd/template/classic-without-sidebar.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mystem-edd/template/grid.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mystem-edd/template/grid-without-sidebar-third.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mystem-edd/widgets/more-author-downloads.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/mystem-edd/template/grid-third.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mystem-edd/widgets/display-downloads.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function dynamic_sidebar() in wp-content/plugins/mystem-edd/template/sidebar-category.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
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
4 plugin tags: easy digital downloads, mystem, edd, easydigitaldownloads
mystem-edd/mystem-edd.php 92% from 13 tests
The entry point to "MyStem EDD" version 1.1 is a PHP file that has certain tags in its header comment area
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
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin2,564 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 396 | 212 | 1,929 |
CSS | 5 | 48 | 23 | 434 |
JavaScript | 9 | 33 | 14 | 201 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 20.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 4.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 1 | 16.67% |
Methods | 33 | |
▷ Static methods | 4 | 12.12% |
▷ Public methods | 32 | 96.97% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 3.03% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
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 |
assets/img/no-image-icon.png | 3.48KB | 1.68KB | ▼ 51.70% |