Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲2.39MB] [CPU: ▲10.88ms] Passed 4 tests
An overview of server-side resources used by Academy LMS – eLearning and online course solution for WordPress
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.90 ▲2.43 | 55.59 ▲12.92 |
Dashboard /wp-admin | 5.69 ▲2.35 | 58.25 ▼0.95 |
Posts /wp-admin/edit.php | 5.76 ▲2.40 | 65.92 ▲20.32 |
Add New Post /wp-admin/post-new.php | 8.66 ▲2.77 | 104.33 ▲11.23 |
Media Library /wp-admin/upload.php | 5.61 ▲2.38 | 57.19 ▲28.57 |
Academy Setup /wp-admin/options-writing.php?page=academy-setup | 5.41 | 37.74 |
Get Pro /wp-admin/admin.php?page=academy-get-pro | 5.71 | 48.00 |
Settings /wp-admin/admin.php?page=academy-settings | 5.87 | 64.28 |
Tools /wp-admin/admin.php?page=academy-tools | 5.87 | 52.83 |
Lessons /wp-admin/admin.php?page=academy-lessons | 5.87 | 51.01 |
Instructors /wp-admin/admin.php?page=academy-instructors | 5.87 | 56.98 |
Announcements /wp-admin/admin.php?page=academy-announcements | 5.87 | 53.65 |
Question & Answer /wp-admin/admin.php?page=academy-question_answer | 5.87 | 56.26 |
Analytics /wp-admin/admin.php?page=academy | 5.87 | 52.04 |
Courses /wp-admin/admin.php?page=academy-courses | 5.87 | 54.43 |
Server storage [IO: ▲7.90MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 255 new files
Database: 2 new tables, 11 new options
New tables |
---|
wp_academy_lessons |
wp_academy_lessonmeta |
New WordPress options |
---|
widget_recent-comments |
academy_first_install_time |
widget_recent-posts |
academy_db_version |
theysaidso_admin_options |
academy_version |
academy_permalinks |
db_upgraded |
can_compress_scripts |
academyut_notification_times |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Academy LMS – eLearning and online course solution for WordPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲162 | 14.25 ▼0.12 | 1.87 ▲0.32 | 40.73 ▼1.57 |
Dashboard /wp-admin | 2,279 ▲115 | 5.66 ▲0.13 | 98.25 ▲4.12 | 41.21 ▼3.70 |
Posts /wp-admin/edit.php | 2,184 ▲84 | 1.98 ▲0.01 | 41.16 ▲1.64 | 35.19 ▼1.62 |
Add New Post /wp-admin/post-new.php | 1,587 ▲59 | 22.52 ▼0.65 | 676.74 ▲27.05 | 56.07 ▼6.86 |
Media Library /wp-admin/upload.php | 1,487 ▲84 | 4.22 ▲0.02 | 114.42 ▲15.60 | 46.20 ▲3.24 |
Academy Setup /wp-admin/options-writing.php?page=academy-setup | 28 | 0.42 | 0.07 | 3.58 |
Get Pro /wp-admin/admin.php?page=academy-get-pro | 4,206 | 14.15 | 503.91 | 388.80 |
Settings /wp-admin/admin.php?page=academy-settings | 1,247 | 12.74 | 335.96 | 46.16 |
Tools /wp-admin/admin.php?page=academy-tools | 1,356 | 12.42 | 184.63 | 54.74 |
Lessons /wp-admin/admin.php?page=academy-lessons | 1,401 | 13.70 | 210.84 | 42.34 |
Instructors /wp-admin/admin.php?page=academy-instructors | 1,328 | 12.98 | 187.59 | 44.16 |
Announcements /wp-admin/admin.php?page=academy-announcements | 1,335 | 12.82 | 195.38 | 40.94 |
Question & Answer /wp-admin/admin.php?page=academy-question_answer | 1,583 | 15.01 | 197.65 | 41.10 |
Analytics /wp-admin/admin.php?page=academy | 1,464 | 13.30 | 220.44 | 51.76 |
Courses /wp-admin/admin.php?page=academy-courses | 1,370 | 12.98 | 213.91 | 48.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure failed, leaving 2 tables in the database
- wp_academy_lessons
- wp_academy_lessonmeta
- Zombie WordPress options were found after uninstall: 11 options
- academy_db_version
- theysaidso_admin_options
- academyut_notification_times
- widget_theysaidso_widget
- can_compress_scripts
- academy_first_install_time
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- academy_permalinks
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > 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-content.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/academy/templates/global/courses.php:4
- > PHP Notice
Undefined variable: reviews in wp-content/plugins/academy/templates/instructor/reviews.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/academy/templates/instructor/tab-navbar.php:2
- > 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_url() in wp-content/plugins/academy/templates/instructor/header.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/options-writing.php?page=academy-setup
- > Network (severe)
wp-admin/options-writing.php?page=academy-setup - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=academy-get-pro
- > Console-api (warning) in unknown
https://client.crisp.chat/static/javascripts/client.js?f51b12a 6:241982 "[WARNING] Crisp found shims of native JavaScript methods. This can alter the chatbox behavior and break things. Make sure not to override listed functions to ensure your chatbox works as expected. You may be looking for other JavaScript libraries in use on this page.\n\nYou can disable this warning by adding: $crisp.push([\"safe\", true]) to your page JavaScript.\n\nMethods to check:" Array(1)
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
Attributes that require attention:
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
academy/academy.php Passed 13 tests
The primary PHP file in "Academy LMS – eLearning and online course solution for WordPress" version 1.9.2 is used by WordPress to initiate all plugin 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 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin29,941 lines of code in 231 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 200 | 2,933 | 1,992 | 25,159 |
SVG | 13 | 1 | 1 | 3,031 |
JavaScript | 9 | 36 | 61 | 1,167 |
CSS | 9 | 3 | 2 | 584 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 228)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 17.66 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 228.00 |
Average method complexity | 3.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 228.00 |
Code structure | ||
---|---|---|
Namespaces | 32 | |
Interfaces | 7 | |
Traits | 11 | |
Classes | 114 | |
▷ Abstract classes | 2 | 1.75% |
▷ Concrete classes | 112 | 98.25% |
▷ Final classes | 4 | 3.57% |
Methods | 816 | |
▷ Static methods | 291 | 35.66% |
▷ Public methods | 772 | 94.61% |
▷ Protected methods | 31 | 3.80% |
▷ Private methods | 13 | 1.59% |
Functions | 62 | |
▷ Named functions | 52 | 83.87% |
▷ Anonymous functions | 10 | 16.13% |
Constants | 24 | |
▷ Global constants | 22 | 91.67% |
▷ Class constants | 2 | 8.33% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
12 PNG files occupy 0.35MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/add-review.png | 2.72KB | 1.40KB | ▼ 48.76% |
assets/images/expire.png | 82.39KB | 29.90KB | ▼ 63.71% |
(invalid) assets/images/profile.png | 2.08KB | 0.00KB | ▼ 100.00% |
assets/images/setup/image-2.png | 78.84KB | 30.26KB | ▼ 61.62% |
assets/images/thumbnail-placeholder.png | 10.99KB | 5.45KB | ▼ 50.41% |