83% light-lms-quizz

Code Review | Light LMS Quizz

WordPress plugin Light LMS Quizz scored83%from 54 tests.

About plugin

  • Plugin page: light-lms-quizz
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-6.0
  • WordPress version: 6.3.1
  • First release: Jun 25, 2020
  • Latest release: May 27, 2022
  • Number of updates: 11
  • Update frequency: every 63.7 days
  • Top authors: pieter91 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,676 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Analyzing server-side resources used by Light LMS Quizz
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.83 ▼0.22
Dashboard /wp-admin3.32 ▲0.0147.41 ▼3.35
Posts /wp-admin/edit.php3.37 ▲0.0150.92 ▼3.14
Add New Post /wp-admin/post-new.php5.90 ▲0.0192.00 ▼14.64
Media Library /wp-admin/upload.php3.24 ▲0.0136.09 ▼0.06

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Light LMS Quizz
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲10113.88 ▼0.468.35 ▲5.9340.48 ▼14.68
Dashboard /wp-admin2,200 ▲235.59 ▼0.1092.71 ▲4.9336.77 ▼5.39
Posts /wp-admin/edit.php2,102 ▲51.98 ▼0.0240.10 ▲1.2536.64 ▼1.62
Add New Post /wp-admin/post-new.php1,530 ▲423.12 ▲0.01648.94 ▲54.4854.39 ▼7.03
Media Library /wp-admin/upload.php1,402 ▲54.33 ▲0.07104.88 ▲1.4947.96 ▲3.54

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 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 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 take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/light-lms-quizz/ligth-lms-quizz.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 81% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots require images: #1 (People answering the question get a feedback when the answer is right or wrong.), #2 (Enter multiple choices questions simply by adding a block to a page or post.), #3 (Enter the question and answers and fill out the settings. Leave some answers blank in order to hide them.)
  • Screenshots: Please add descriptions for these screenshots #0, #0, #0 in light-lms-quizz/assets to your readme.txt
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === light-lms-quizz === )
You can take inspiration from this readme.txt

light-lms-quizz/ligth-lms-quizz.php 92% from 13 tests

The main PHP script in "Light LMS Quizz" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("light-lms-quizz.php" instead of "ligth-lms-quizz.php")

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
Good job! No executable or dangerous file extensions detected2,207 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PO File85345961,180
JavaScript21082897
CSS22072
PHP1292058

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin