90% obi-learndash-redirect

Code Review | Obi LearnDash Redirect

WordPress plugin Obi LearnDash Redirect scored90%from 54 tests.

About plugin

  • Plugin page: obi-learndash-red...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2
  • WordPress version: 6.3.1
  • First release: May 6, 2023
  • Latest release: May 6, 2023
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: obijuandev (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /101 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼10.63ms] Passed 4 tests

Server-side resources used by Obi LearnDash Redirect
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.79 ▼6.61
Dashboard /wp-admin3.31 ▼0.0443.03 ▼14.99
Posts /wp-admin/edit.php3.36 ▲0.0046.39 ▲1.53
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.31 ▼16.52
Media Library /wp-admin/upload.php3.23 ▲0.0035.14 ▼4.38

Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Obi LearnDash Redirect: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1814.35 ▼0.001.51 ▼0.3637.32 ▼7.03
Dashboard /wp-admin2,195 ▲185.58 ▼0.0287.09 ▼4.5937.28 ▼2.57
Posts /wp-admin/edit.php2,079 ▼241.99 ▼0.0334.67 ▼5.4032.56 ▲0.44
Add New Post /wp-admin/post-new.php1,528 ▲223.24 ▲0.26600.87 ▼15.3765.53 ▲10.53
Media Library /wp-admin/upload.php1,397 ▼34.20 ▲0.04101.40 ▼7.6142.56 ▼1.78

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

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)
Good news, no errors were detected

SRP Passed 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
The SRP test was a success

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)
No browser issues were found

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
3 plugin tags: woocommerce, redirection, learndash

obi-learndash-redirect/obi-learndash-redirect.php Passed 13 tests

The main file in "Obi LearnDash Redirect" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
54 characters long description:
Redirect users to your course/group custom sales page.

Code Analysis Passed 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 plugin664 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP11215440659
JSON1005

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity18.00
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods52
▷ Static methods2446.15%
▷ Public methods4484.62%
▷ Protected methods00.00%
▷ Private methods815.38%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants7
▷ Global constants7100.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 images were found in this plugin