84% tutor-lms-bunnynet-integration

Code Review | Tutor LMS BunnyNet Integration

WordPress plugin Tutor LMS BunnyNet Integration scored84%from 54 tests.

About plugin

  • Plugin page: tutor-lms-bunnyne...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.1
  • WordPress version: 6.3.1
  • First release: Dec 29, 2022
  • Latest release: Dec 29, 2022
  • Number of updates: 3
  • Update frequency: every 4.0 days
  • Top authors: themeum (100%)

Code review

54 tests

User reviews

1 review

Install metrics

400+ active /1,164 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0740.03 ▼1.16
Dashboard /wp-admin3.38 ▲0.0345.78 ▼10.86
Posts /wp-admin/edit.php3.49 ▲0.1344.29 ▼1.10
Add New Post /wp-admin/post-new.php5.96 ▲0.0792.19 ▲3.77
Media Library /wp-admin/upload.php3.30 ▲0.0738.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲5614.45 ▲0.081.66 ▼0.0842.61 ▼1.28
Dashboard /wp-admin2,223 ▲465.62 ▼0.0483.44 ▼2.3776.86 ▲36.62
Posts /wp-admin/edit.php2,132 ▲292.10 ▲0.0936.31 ▲0.6930.41 ▼3.55
Add New Post /wp-admin/post-new.php1,717 ▲18924.05 ▲0.84702.06 ▲17.4955.70 ▲3.44
Media Library /wp-admin/upload.php1,425 ▲224.21 ▼0.03102.21 ▲3.6181.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

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: You can look at the official 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:
LanguageFilesBlank linesComment linesLines of code
PHP13173585783
JSON1005

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 code0.44
Average class complexity15.00
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.72
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes114.29%
Methods58
▷ Static methods3255.17%
▷ Public methods5594.83%
▷ Protected methods00.00%
▷ Private methods35.17%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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