Benchmarks
Plugin footprint 65% from 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: ▲5.02MB] [CPU: ▲25.76ms] 75% from 4 tests
Server-side resources used by Easy Digital Downloads - Courses
Please take the time to fix the following items
- Extra RAM: Extra memory usage must be kept under 5MB (currently 5.02MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.75 ▲5.29 | 61.34 ▲19.13 |
Dashboard /wp-admin | 8.77 ▲5.47 | 72.41 ▲28.71 |
Posts /wp-admin/edit.php | 8.77 ▲5.41 | 74.49 ▲26.88 |
Add New Post /wp-admin/post-new.php | 9.80 ▲3.92 | 121.71 ▲32.88 |
Media Library /wp-admin/upload.php | 8.77 ▲5.54 | 61.89 ▲28.30 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 8.77 | 55.22 |
Server storage [IO: ▲3.76MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 224 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_theysaidso_widget |
fs_active_plugins |
fs_gdpr |
db_upgraded |
fs_debug_mode |
widget_recent-posts |
fs_accounts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Easy Digital Downloads - Courses: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲119 | 15.11 ▲0.52 | 22.86 ▲20.70 | 29.94 ▼19.18 |
Dashboard /wp-admin | 2,251 ▲65 | 5.84 ▲0.93 | 113.76 ▼2.30 | 47.09 ▼0.89 |
Posts /wp-admin/edit.php | 2,134 ▲42 | 2.02 ▲0.05 | 41.28 ▲0.17 | 39.10 ▼0.41 |
Add New Post /wp-admin/post-new.php | 1,544 ▲10 | 22.08 ▼0.90 | 688.31 ▲85.29 | 54.01 ▲5.48 |
Media Library /wp-admin/upload.php | 1,430 ▲48 | 4.20 ▼0.06 | 102.22 ▼0.45 | 46.78 ▲3.70 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,074 | 1.72 | 24.12 | 28.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/edd-courses/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- Zombie WordPress options detected upon uninstall: 10 options
- widget_theysaidso_widget
- fs_accounts
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- fs_debug_mode
- fs_gdpr
- fs_active_plugins
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/edd-courses/includes/admin/views/metaboxes/courses/lessons.php
- 16× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: data in wp-content/plugins/edd-courses/includes/admin/views/metaboxes/courses/lessons.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'EDDC_Metabox' not found in wp-content/plugins/edd-courses/includes/admin/courses/class-eddc-courses-metabox.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function edd_get_option() in wp-content/plugins/edd-courses/templates/course-template.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function selected() in wp-content/plugins/edd-courses/includes/admin/views/metaboxes/courses/download.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/edd-courses/templates/student-courses.php:11
- > PHP Notice
Undefined variable: data in wp-content/plugins/edd-courses/includes/admin/views/metaboxes/courses/lessons.php on line 7
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/edd-courses/includes/admin/views/metaboxes/courses/lessons.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/edd-courses/includes/admin/courses/class-eddc-courses-ajax.php:24
- > PHP Fatal error
Uncaught Error: Class 'EDDC_Metabox' not found in wp-content/plugins/edd-courses/includes/admin/lessons/class-eddc-lessons-metabox.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/edd-courses/templates/course-header.php:2
- > PHP Notice
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 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: Please add images for these screenshots: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
edd-courses/edd-courses.php 85% from 13 tests
The primary PHP file in "Easy Digital Downloads - Courses" version 0.1.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Domain Path: Use only dashes and lowercase characters for the domain path ("languages")
- Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
Code Analysis 97% from 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 plugin33,974 lines of code in 181 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 143 | 7,719 | 17,088 | 32,349 |
JavaScript | 12 | 178 | 179 | 944 |
Sass | 10 | 66 | 0 | 429 |
Markdown | 1 | 68 | 0 | 214 |
YAML | 2 | 2 | 0 | 22 |
CSS | 13 | 0 | 0 | 16 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
These items need your attention
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,911)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 66.37 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,911.00 |
Average method complexity | 4.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 65 | |
▷ Abstract classes | 4 | 6.15% |
▷ Concrete classes | 61 | 93.85% |
▷ Final classes | 1 | 1.64% |
Methods | 1,265 | |
▷ Static methods | 179 | 14.15% |
▷ Public methods | 917 | 72.49% |
▷ Protected methods | 15 | 1.19% |
▷ Private methods | 333 | 26.32% |
Functions | 116 | |
▷ Named functions | 116 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 127 | |
▷ Global constants | 102 | 80.31% |
▷ Class constants | 25 | 19.69% |
▷ Public constants | 25 | 100.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.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |