84% bizexaminer-learndash-extension

Code Review | bizExaminer LearnDash Extension

WordPress plugin bizExaminer LearnDash Extension scored84%from 54 tests.

About plugin

  • Plugin page: bizexaminer-learn...
  • Plugin version: 1.3.7
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4
  • WordPress version: 6.3.1
  • First release: Dec 5, 2022
  • Latest release: Nov 1, 2023
  • Number of updates: 24
  • Update frequency: every 13.9 days
  • Top authors: bizexaminer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,001 total downloads

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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.45MB] [CPU: ▼2.50ms] Passed 4 tests

A check of server-side resources used by bizExaminer LearnDash Extension
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.90 ▲0.4344.00 ▲5.04
Dashboard /wp-admin3.82 ▲0.4754.48 ▼3.09
Posts /wp-admin/edit.php3.87 ▲0.5151.24 ▲4.12
Add New Post /wp-admin/post-new.php6.33 ▲0.44100.96 ▼11.56
Media Library /wp-admin/upload.php3.68 ▲0.4437.91 ▲0.53

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 162 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
db_upgraded
be_ld_db_version
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

bizExaminer LearnDash Extension: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲4614.31 ▼0.341.68 ▲0.0444.69 ▲0.94
Dashboard /wp-admin2,201 ▲205.58 ▼0.1989.84 ▼16.5142.45 ▲1.51
Posts /wp-admin/edit.php2,103 ▲31.97 ▼0.0433.96 ▼7.3335.06 ▼0.98
Add New Post /wp-admin/post-new.php1,529 ▲123.21 ▲0.11621.56 ▼43.6256.90 ▼7.74
Media Library /wp-admin/upload.php1,403 ▲64.22 ▲0.0496.64 ▼6.1542.78 ▼1.07

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
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • be_ld_db_version
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 72× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'BizExaminer\\LearnDashExtension\\Internal\\Interfaces\\ApiAwareInterface' not found in wp-content/plugins/bizexaminer-learndash-extension/lib/Api/RemoteProctorsService.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'BizExaminer\\LearnDashExtension\\Internal\\Interfaces\\EventManagerAwareInterface' not found in wp-content/plugins/bizexaminer-learndash-extension/lib/Core/TemplateService.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'LearnDash_Settings_Page' not found in wp-content/plugins/bizexaminer-learndash-extension/lib/LearnDash/Settings/SettingsPage.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'BizExaminer\\LearnDashExtension\\Vendor\\League\\Container\\Argument\\ArgumentResolverInterface' not found in wp-content/plugins/bizexaminer-learndash-extension/lib/Vendor/League/Container/Definition/Definition.php:18
    • > PHP Fatal error
      Uncaught Error: Interface 'BizExaminer\\LearnDashExtension\\Vendor\\Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/bizexaminer-learndash-extension/lib/Vendor/Psr/Container/NotFoundExceptionInterface.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'BizExaminer\\LearnDashExtension\\Internal\\EventManagement\\ActionSubscriberInterface' not found in wp-content/plugins/bizexaminer-learndash-extension/lib/LearnDash/Quiz/QuizSettings/AdminSubscriber.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'BizExaminer\\LearnDashExtension\\Vendor\\League\\Container\\Inflector\\InflectorAggregateInterface' not found in wp-content/plugins/bizexaminer-learndash-extension/lib/Vendor/League/Container/Inflector/InflectorAggregate.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'LearnDash_Settings_Section' not found in wp-content/plugins/bizexaminer-learndash-extension/lib/LearnDash/Settings/SupportSection.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'BizExaminer\\LearnDashExtension\\Vendor\\League\\Container\\ContainerAwareInterface' not found in wp-content/plugins/bizexaminer-learndash-extension/lib/Vendor/League/Container/Definition/DefinitionAggregateInterface.php:10
    • > PHP Fatal error
      Uncaught Error: Interface 'BizExaminer\\LearnDashExtension\\Internal\\EventManagement\\SubscriberInterface' not found in wp-content/plugins/bizexaminer-learndash-extension/lib/Internal/EventManagement/FilterSubscriberInterface.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: exams, learndash, lms

bizexaminer-learndash-extension/bizexaminer-learndash-extension.php Passed 13 tests

The main PHP script in "bizExaminer LearnDash Extension" version 1.3.7 is automatically included on every request by WordPress
54 characters long description:
An extension for LearnDash to connect with bizExaminer

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected10,688 lines of code in 157 files:
LanguageFilesBlank linesComment linesLines of code
PHP1391,6874,9869,196
PO File1184271605
JavaScript1179118556
JSON200210
Sass2173119
CSS2002

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity8.06
▷ Minimum class complexity1.00
▷ Maximum class complexity69.00
Average method complexity2.95
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces26
Interfaces33
Traits10
Classes85
▷ Abstract classes33.53%
▷ Concrete classes8296.47%
▷ Final classes00.00%
Methods529
▷ Static methods397.37%
▷ Public methods45586.01%
▷ Protected methods6512.29%
▷ Private methods91.70%
Functions22
▷ Named functions14.55%
▷ Anonymous functions2195.45%
Constants48
▷ Global constants24.17%
▷ Class constants4695.83%
▷ Public constants3167.39%

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
There were not PNG files found in your plugin