90% lifterlms-labs

Code Review | LifterLMS Labs

WordPress plugin LifterLMS Labs scored90%from 54 tests.

About plugin

  • Plugin page: lifterlms-labs
  • Plugin version: 1.6.1
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 27, 2016
  • Latest release: Feb 18, 2023
  • Number of updates: 51
  • Update frequency: every 44.2 days
  • Top authors: thomasplevy (92.16%)strangerstudios (9.8%)

Code review

54 tests

User reviews

3 reviews

Install metrics

3,000+ active /35,421 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.29MB] [CPU: ▼1.03ms] Passed 4 tests

Analyzing server-side resources used by LifterLMS Labs
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2947.57 ▲0.52
Dashboard /wp-admin3.64 ▲0.3354.63 ▲1.38
Posts /wp-admin/edit.php3.69 ▲0.3358.10 ▲5.99
Add New Post /wp-admin/post-new.php6.16 ▲0.2795.46 ▼12.02
Media Library /wp-admin/upload.php3.50 ▲0.2744.77 ▲7.68
Labs /wp-admin/admin.php?page=llms-labs3.4741.77

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for LifterLMS Labs
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.34 ▼0.012.07 ▲0.3644.39 ▲2.81
Dashboard /wp-admin2,198 ▲185.63 ▼0.0187.50 ▼2.5444.89 ▼0.81
Posts /wp-admin/edit.php2,103 ▲32.01 ▲0.0141.53 ▲3.0635.57 ▼2.44
Add New Post /wp-admin/post-new.php1,528 ▲223.31 ▲0.29687.87 ▼18.6566.23 ▲3.74
Media Library /wp-admin/upload.php1,403 ▲94.25 ▲0.04106.26 ▼1.4148.27 ▲2.93
Labs /wp-admin/admin.php?page=llms-labs9511.9923.7927.87

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt is a good inspiration

lifterlms-labs/lifterlms-labs.php Passed 13 tests

The main PHP file in "LifterLMS Labs" ver. 1.6.1 adds more information about the plugin and also serves as the entry point for this plugin
120 characters long description:
Experimental, conceptual, and possibly silly new features to improve and enhance the functionality of the LifterLMS core

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,685 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP285189171,684
JavaScript1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity9.06
▷ Minimum class complexity1.00
▷ Maximum class complexity40.00
Average method complexity2.34
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes16
▷ Abstract classes16.25%
▷ Concrete classes1593.75%
▷ Final classes16.67%
Methods99
▷ Static methods33.03%
▷ Public methods6767.68%
▷ Protected methods1717.17%
▷ Private methods1515.15%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
There are no PNG files in this plugin