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
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼6.74ms] Passed 4 tests
Server-side resources used by Sensei LMS Media Attachments
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.21 ▼18.39 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.74 ▼4.18 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 47.49 ▼1.49 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 90.43 ▼2.89 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 38.97 ▲6.17 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Sensei LMS Media Attachments
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲77 | 13.53 ▼0.64 | 1.65 ▼0.18 | 41.99 ▼0.88 |
Dashboard /wp-admin | 2,215 ▲30 | 5.84 ▼0.05 | 100.44 ▼8.99 | 41.78 ▼0.42 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.03 | 42.50 ▲6.24 | 35.53 ▼2.96 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.29 ▲5.80 | 613.62 ▼83.70 | 52.70 ▼0.34 |
Media Library /wp-admin/upload.php | 1,382 ▼0 | 4.18 ▲0.01 | 95.55 ▲1.35 | 40.45 ▼5.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: media, attachments, downloads, sensei lms
sensei-media-attachments/sensei-media-attachments.php Passed 13 tests
The main PHP script in "Sensei LMS Media Attachments" version 2.0.3 is automatically included on every request by WordPress
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 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected393 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin