84% lifterlms-wpmktgengine-extension

Code Review | LifterLMS - WPMktgEngine | Genoo Extension

WordPress plugin LifterLMS - WPMktgEngine | Genoo Extension scored84%from 54 tests.

About plugin

  • Plugin page: lifterlms-wpmktge...
  • Plugin version: 1.3.14
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.1-6.0.2
  • WordPress version: 6.3.1
  • First release: Mar 15, 2016
  • Latest release: Oct 1, 2022
  • Number of updates: 14
  • Update frequency: every 171.6 days
  • Top authors: Genoo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /3,292 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.87ms] Passed 4 tests

A check of server-side resources used by LifterLMS - WPMktgEngine | Genoo Extension
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0041.31 ▲0.50
Dashboard /wp-admin3.34 ▲0.0046.67 ▼5.26
Posts /wp-admin/edit.php3.39 ▲0.0048.52 ▲1.85
Add New Post /wp-admin/post-new.php5.92 ▲0.0081.02 ▼24.52
Media Library /wp-admin/upload.php3.26 ▲0.0037.34 ▲1.82

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: no files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for LifterLMS - WPMktgEngine | Genoo Extension
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▼1.541.62 ▼0.2040.78 ▼2.00
Dashboard /wp-admin2,206 ▲184.85 ▼1.06107.66 ▼11.7140.30 ▼5.90
Posts /wp-admin/edit.php2,089 ▲31.99 ▲0.0238.90 ▲3.9137.71 ▲2.10
Add New Post /wp-admin/post-new.php1,514 ▼517.76 ▼5.03633.64 ▲3.5355.73 ▲10.82
Media Library /wp-admin/upload.php1,388 ▲34.18 ▲0.0099.19 ▼4.3144.55 ▲3.28

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/lifterlms-wpmktgengine-extension/wpmktgengine-lifter-lms.php:27

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 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
4 plugin tags: email marketing, marketing automation, lifterlms, lead capture forms

lifterlms-wpmktgengine-extension/wpmktgengine-lifter-lms.php 92% from 13 tests

The primary PHP file in "LifterLMS - WPMktgEngine | Genoo Extension" version 1.3.14 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("lifterlms-wpmktgengine-extension.php" instead of "wpmktgengine-lifter-lms.php")

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 plugin614 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP289195614

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods4100.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions20
▷ Named functions525.00%
▷ Anonymous functions1575.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected