89% wplms-h5p-plugin

Code Review | WPLMS H5P

WordPress plugin WPLMS H5P scored89%from 54 tests.

About plugin

  • Plugin page: wplms-h5p-plugin
  • Plugin version: 2.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.3.1
  • WordPress version: 6.3.1
  • First release: Apr 11, 2017
  • Latest release: Sep 1, 2023
  • Number of updates: 14
  • Update frequency: every 166.8 days
  • Top authors: VibeThemes (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

2,000+ active /59,889 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.23MB] [CPU: ▼4.42ms] Passed 4 tests

This is a short check of server-side resources used by WPLMS H5P
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2438.95 ▼7.88
Dashboard /wp-admin3.54 ▲0.2348.71 ▼5.50
Posts /wp-admin/edit.php3.65 ▲0.2949.75 ▼3.92
Add New Post /wp-admin/post-new.php6.12 ▲0.2486.95 ▼0.37
Media Library /wp-admin/upload.php3.46 ▲0.2339.25 ▲0.53

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WPLMS H5P
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲7913.22 ▼1.161.90 ▲0.0641.71 ▼2.78
Dashboard /wp-admin2,221 ▲184.79 ▼1.12103.38 ▼18.9941.97 ▼1.70
Posts /wp-admin/edit.php2,079 ▼242.02 ▲0.0235.25 ▼0.8533.78 ▼1.52
Add New Post /wp-admin/post-new.php1,548 ▼123.55 ▲5.22644.90 ▼6.5652.27 ▼9.63
Media Library /wp-admin/upload.php1,403 ▲94.21 ▼0.0296.97 ▼1.0342.68 ▼4.21

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Screenshot #2 (Options page) image required
You can look at the official readme.txt

wplms-h5p-plugin/wplms-h5p.php 92% from 13 tests

This is the main PHP file of "WPLMS H5P" version 2.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wplms-h5p-plugin.php" instead of "wplms-h5p.php")

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
Good job! No executable or dangerous file extensions detected1,517 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP52301141,267
PO File17072174
JavaScript28575
CSS1101

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity34.25
▷ Minimum class complexity12.00
▷ Maximum class complexity90.00
Average method complexity3.71
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods49
▷ Static methods510.20%
▷ Public methods4693.88%
▷ Protected methods00.00%
▷ Private methods36.12%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.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 images were found in this plugin