94% gamipress-wplms-integration

Code Review | GamiPress - WPLMS integration

WordPress plugin GamiPress - WPLMS integration scored 94% from 54 tests.

About plugin

  • Plugin page: gamipress-wplms-i...
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.9
  • WordPress version: 5.9.2
  • First release: Feb 6, 2018
  • Latest release: Feb 28, 2022
  • Number of updates: 18
  • Update frequency: every 82.4 days
  • Top authors: rubengc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 1,691 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

A check of server-side resources used by GamiPress - WPLMS integration
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0155.83 ▲5.02
Dashboard /wp-admin3.42 ▲0.0133.51 ▼0.07
Posts /wp-admin/edit.php3.65 ▲0.0139.27 ▲0.80
Add New Post /wp-admin/post-new.php6.89 ▼0.08105.29 ▼1,212.02
Media Library /wp-admin/upload.php3.30 ▼0.0024.43 ▼6.16

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for GamiPress - WPLMS integration
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,827 ▲7316.22 ▲0.696.48 ▲0.483.21 ▲0.71
Dashboard /wp-admin2,923 ▲656.14 ▼0.02120.25 ▼12.30155.86 ▲0.46
Posts /wp-admin/edit.php2,719 ▲313.23 ▲0.0063.38 ▼1.19138.76 ▼4.54
Add New Post /wp-admin/post-new.php1,680 ▼7816.83 ▼5.24432.43 ▼3.76153.13 ▼7.24
Media Library /wp-admin/upload.php1,726 ▲315.54 ▲0.00139.18 ▼0.19182.39 ▼12.54

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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 items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gamipress-wplms-integration/gamipress-wplms.php:246

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 24 tag instead of maximum 10
The official readme.txt might help

gamipress-wplms-integration/gamipress-wplms.php 92% from 13 tests

The entry point to "GamiPress - WPLMS integration" version 1.0.6 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("gamipress-wplms-integration.php" instead of "gamipress-wplms.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected566 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP7211449519
JavaScript212447

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.69
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods9
▷ Static methods111.11%
▷ Public methods555.56%
▷ Protected methods00.00%
▷ Private methods444.44%
Functions30
▷ Named functions30100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin