Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼291.49ms] Passed 4 tests
Analyzing server-side resources used by Sensei LMS Media Attachments
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.14 | 54.12 ▲5.11 |
Dashboard /wp-admin | 3.48 ▲0.07 | 33.54 ▲1.05 |
Posts /wp-admin/edit.php | 3.71 ▲0.07 | 38.68 ▲1.74 |
Add New Post /wp-admin/post-new.php | 6.96 ▼0.02 | 98.35 ▼1,161.41 |
Media Library /wp-admin/upload.php | 3.36 ▲0.06 | 26.33 ▼7.32 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Sensei LMS Media Attachments
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,783 ▲28 | 15.65 ▼0.27 | 6.96 ▲0.48 | 2.11 ▼0.93 |
Dashboard /wp-admin | 2,911 ▲53 | 6.14 ▼0.07 | 125.74 ▼8.25 | 166.06 ▲4.34 |
Posts /wp-admin/edit.php | 2,694 ▲9 | 3.23 ▼0.01 | 64.96 ▲2.10 | 138.40 ▼1.52 |
Add New Post /wp-admin/post-new.php | 1,752 ▲41 | 20.95 ▲0.03 | 455.48 ▲11.93 | 151.95 ▼3.84 |
Media Library /wp-admin/upload.php | 1,695 ▼3 | 5.53 ▲0.04 | 139.46 ▼2.19 | 192.97 ▼2.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully
Smoke tests Passed 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)
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: downloads, attachments, sensei lms, media
sensei-media-attachments/sensei-media-attachments.php Passed 13 tests
The principal PHP file in "Sensei LMS Media Attachments" v. 2.0.3 is loaded by WordPress automatically on each request
113 characters long description:
Provide your students with easy access to additional learning materials, from audio files to slideshows and PDFs.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin393 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 97 | 241 | 282 |
PO File | 3 | 22 | 68 | 109 |
CSS | 1 | 1 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 9 | 39.13% |
▷ Public methods | 16 | 69.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 30.43% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 3 | 60.00% |
▷ Class constants | 2 | 40.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin