84% custom-template-lifterlms

Code Review | Custom Template for LifterLMS

WordPress plugin Custom Template for LifterLMS scored84%from 54 tests.

About plugin

  • Plugin page: custom-template-l...
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Feb 4, 2018
  • Latest release: Aug 22, 2023
  • Number of updates: 19
  • Update frequency: every 106.6 days
  • Top authors: brainstormworg (52.63%)Nikschavan (47.37%)patilvikasj (10.53%)

Code review

54 tests

User reviews

3 reviews

Install metrics

400+ active /13,293 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.04MB] [CPU: ▼8.36ms] Passed 4 tests

Server-side resources used by Custom Template for LifterLMS
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0541.76 ▼0.68
Dashboard /wp-admin3.35 ▲0.0148.78 ▼17.01
Posts /wp-admin/edit.php3.47 ▲0.1149.17 ▼6.85
Add New Post /wp-admin/post-new.php5.94 ▲0.0584.49 ▼8.90
Media Library /wp-admin/upload.php3.27 ▲0.0435.37 ▲0.64

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Custom Template for LifterLMS
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3413.94 ▼0.332.28 ▲0.7143.09 ▲0.91
Dashboard /wp-admin2,195 ▲185.54 ▼0.1488.00 ▼15.9940.44 ▼1.26
Posts /wp-admin/edit.php2,106 ▲61.97 ▲0.0338.80 ▲2.2335.38 ▼0.42
Add New Post /wp-admin/post-new.php1,529 ▲323.13 ▲0.04630.40 ▼50.1651.16 ▼7.01
Media Library /wp-admin/upload.php1,403 ▼04.16 ▼0.0296.40 ▼7.4840.80 ▼5.63

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/custom-template-lifterlms/custom-template-lifterlms.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

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
6 plugin tags: beaver builder, elementor, lifterlms, course, visual composer...

custom-template-lifterlms/custom-template-lifterlms.php 92% from 13 tests

The primary PHP file in "Custom Template for LifterLMS" version 1.0.5 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 190 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin408 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4135240408

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity21.67
▷ Minimum class complexity3.00
▷ Maximum class complexity51.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods29
▷ Static methods724.14%
▷ Public methods2689.66%
▷ Protected methods00.00%
▷ Private methods310.34%
Functions0
▷ Named functions00.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