Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼2.34ms] Passed 4 tests
An overview of server-side resources used by Tutor LMS BunnyNet Integration
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 40.03 ▼1.16 |
Dashboard /wp-admin | 3.38 ▲0.03 | 45.78 ▼10.86 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 44.29 ▼1.10 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 92.19 ▲3.77 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 38.24 ▲5.51 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Tutor LMS BunnyNet Integration
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲56 | 14.45 ▲0.08 | 1.66 ▼0.08 | 42.61 ▼1.28 |
Dashboard /wp-admin | 2,223 ▲46 | 5.62 ▼0.04 | 83.44 ▼2.37 | 76.86 ▲36.62 |
Posts /wp-admin/edit.php | 2,132 ▲29 | 2.10 ▲0.09 | 36.31 ▲0.69 | 30.41 ▼3.55 |
Add New Post /wp-admin/post-new.php | 1,717 ▲189 | 24.05 ▲0.84 | 702.06 ▲17.49 | 55.70 ▲3.44 |
Media Library /wp-admin/upload.php | 1,425 ▲22 | 4.21 ▼0.03 | 102.21 ▲3.61 | 81.26 ▲39.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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 fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tutor-lms-bunnynet-integration/tutor-lms-bunnynet-integration.php:57
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: Add descriptions for screenshots #4, #5, #6 in tutor-lms-bunnynet-integration/assets to your readme.txt
tutor-lms-bunnynet-integration/tutor-lms-bunnynet-integration.php 92% from 13 tests
This is the main PHP file of "Tutor LMS BunnyNet Integration" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 243 characters long)
Code Analysis Passed 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
Everything looks great! No dangerous files found in this plugin788 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 173 | 585 | 783 |
JSON | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 1 | 14.29% |
Methods | 58 | |
▷ Static methods | 32 | 55.17% |
▷ Public methods | 55 | 94.83% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 5.17% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected