Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲1.63MB] [CPU: ▼275.45ms] 75% from 4 tests
This is a short check of server-side resources used by Academy LMS – eLearning and online course solution for WordPress
The following require your attention
- RAM: You should keep total memory usage under 10MB (currently 10.14MB on /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.21 ▲1.69 | 66.72 ▲15.02 |
Dashboard /wp-admin | 4.98 ▲1.57 | 51.36 ▲17.87 |
Posts /wp-admin/edit.php | 5.27 ▲1.63 | 49.88 ▲14.60 |
Add New Post /wp-admin/post-new.php | 9.56 ▲2.59 | 109.89 ▼1,140.32 |
Media Library /wp-admin/upload.php | 4.93 ▲1.63 | 32.54 ▲8.92 |
All Courses /wp-admin/admin.php?page=academy-courses | 5.04 | 35.49 |
Tags /wp-admin/admin.php?page=academy-tag | 5.04 | 34.73 |
All Lessons /wp-admin/admin.php?page=academy-lessons | 5.04 | 35.70 |
Question & Answer /wp-admin/admin.php?page=academy-question_answer | 5.04 | 34.76 |
Add New Course /wp-admin/admin.php?page=academy-course | 5.04 | 43.59 |
Category /wp-admin/admin.php?page=academy-category | 5.04 | 36.36 |
Students /wp-admin/admin.php?page=academy-students | 5.04 | 35.65 |
Settings /wp-admin/admin.php?page=academy-settings | 5.04 | 34.13 |
Analytics /wp-admin/admin.php?page=academy | 5.04 | 35.12 |
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php | 10.14 | 72.93 |
Server storage [IO: ▲3.56MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 167 new files
Database: 4 new tables, 6 new options
New tables |
---|
wp_academy_withdraws |
wp_academy_lessonmeta |
wp_academy_earnings |
wp_academy_lessons |
New WordPress options |
---|
academy_first_install_time |
academy_db_version |
academy_version |
widget_recent-comments |
widget_recent-posts |
academyut_notification_times |
Browser metrics Passed 4 tests
Checking browser requirements for Academy LMS – eLearning and online course solution for WordPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,882 ▲128 | 16.14 ▲0.01 | 5.89 ▼0.24 | 2.43 ▼0.64 |
Dashboard /wp-admin | 2,976 ▲122 | 6.13 ▲0.03 | 123.66 ▼8.22 | 160.43 ▲3.95 |
Posts /wp-admin/edit.php | 2,772 ▲78 | 3.25 ▼0.00 | 69.42 ▲3.58 | 146.05 ▲1.30 |
Add New Post /wp-admin/post-new.php | 1,719 ▲29 | 21.16 ▼0.82 | 421.71 ▼17.56 | 160.39 ▲8.35 |
Media Library /wp-admin/upload.php | 1,786 ▲85 | 5.46 ▼0.06 | 140.05 ▼4.14 | 187.17 ▲6.71 |
All Courses /wp-admin/admin.php?page=academy-courses | 1,655 | 12.53 | 320.16 | 202.65 |
Tags /wp-admin/admin.php?page=academy-tag | 1,688 | 12.71 | 234.43 | 126.10 |
All Lessons /wp-admin/admin.php?page=academy-lessons | 1,564 | 14.08 | 172.53 | 146.64 |
Question & Answer /wp-admin/admin.php?page=academy-question_answer | 1,566 | 12.24 | 175.36 | 136.86 |
Add New Course /wp-admin/admin.php?page=academy-course | 1,952 | 15.64 | 261.32 | 231.68 |
Category /wp-admin/admin.php?page=academy-category | 1,698 | 12.85 | 157.72 | 129.63 |
Students /wp-admin/admin.php?page=academy-students | 1,537 | 13.23 | 161.76 | 127.48 |
Settings /wp-admin/admin.php?page=academy-settings | 1,583 | 13.28 | 163.77 | 118.77 |
Analytics /wp-admin/admin.php?page=academy | 1,533 | 13.96 | 184.16 | 110.31 |
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php | 15,066 | 26.65 | 1,133.56 | 268.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 4 tables in the database
- wp_academy_lessonmeta
- wp_academy_withdraws
- wp_academy_lessons
- wp_academy_earnings
- The uninstall procedure has failed, leaving 6 options in the database
- academyut_notification_times
- academy_first_install_time
- widget_recent-posts
- widget_recent-comments
- academy_version
- academy_db_version
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-includes/class-wp-customize-nav-menus.php+1152
Trying to get property 'title' of non-object
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/academy/includes/database/create-quiz-meta-table.php
- 12× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/academy/templates/instructor/header.php:2
- > PHP Notice
Undefined variable: is_enrolled in wp-content/plugins/academy/templates/single-course/enroll/content.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/academy/templates/instructor/reviews.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/academy/templates/instructor/tab-navbar.php:2
- > PHP Notice
Undefined variable: is_paid in wp-content/plugins/academy/templates/single-course/enroll/content.php on line 6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/academy/templates/global/login.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/academy/templates/global/courses.php:4
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/academy/templates/instructor/reviews.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/academy/templates/single-course/enroll/content.php:13
- > PHP Notice
Undefined variable: reviews in wp-content/plugins/academy/templates/instructor/reviews.php on line 3
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Tags: There are too many tags (15 tag instead of maximum 10)
academy/academy.php Passed 13 tests
"Academy LMS – eLearning and online course solution for WordPress" version 1.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
51 characters long description:
Share your knowledge by launching an online course.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected21,527 lines of code in 151 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 133 | 2,400 | 2,523 | 18,130 |
SVG | 5 | 0 | 0 | 2,821 |
JavaScript | 7 | 12 | 6 | 374 |
CSS | 6 | 4 | 7 | 202 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Method cyclomatic complexity has to be reduced to less than 100 (currently 228)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 24.42 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 362.00 |
Average method complexity | 4.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 228.00 |
Code structure | ||
---|---|---|
Namespaces | 20 | |
Interfaces | 2 | |
Traits | 6 | |
Classes | 63 | |
▷ Abstract classes | 2 | 3.17% |
▷ Concrete classes | 61 | 96.83% |
▷ Final classes | 1 | 1.64% |
Methods | 484 | |
▷ Static methods | 169 | 34.92% |
▷ Public methods | 430 | 88.84% |
▷ Protected methods | 48 | 9.92% |
▷ Private methods | 6 | 1.24% |
Functions | 48 | |
▷ Named functions | 47 | 97.92% |
▷ Anonymous functions | 1 | 2.08% |
Constants | 14 | |
▷ Global constants | 12 | 85.71% |
▷ Class constants | 2 | 14.29% |
▷ Public constants | 2 | 100.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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/thumbnail-placeholder.png | 10.99KB | 5.45KB | ▼ 50.41% |
(invalid) assets/images/profile.png | 2.08KB | 0.00KB | ▼ 100.00% |
assets/images/add-review.png | 2.72KB | 1.40KB | ▼ 48.76% |