94% gamipress-wp-courseware-integration

Code Review | GamiPress - WP Courseware integration

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

About plugin

  • Plugin page: gamipress-wp-cour...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.8
  • WordPress version: 5.8.1
  • First release: Jan 24, 2018
  • Latest release: Aug 4, 2021
  • Number of updates: 19
  • Update frequency: every 67.8 days
  • Top authors: rubengc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 1,410 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼140.78ms] Passed 4 tests

Server-side resources used by GamiPress - WP Courseware integration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1439.06 ▲11.35
Dashboard /wp-admin3.08 ▲0.0353.73 ▲11.40
Posts /wp-admin/edit.php3.14 ▲0.0341.93 ▲6.98
Add New Post /wp-admin/post-new.php5.44 ▲0.0191.49 ▼579.79
Media Library /wp-admin/upload.php3.03 ▲0.0235.03 ▼1.66

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by GamiPress - WP Courseware integration
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,731 ▲13515.89 ▲0.049.26 ▲1.2253.40 ▲4.21
Dashboard /wp-admin3,001 ▲685.93 ▲0.00139.08 ▼7.74120.84 ▲1.10
Posts /wp-admin/edit.php2,770 ▲312.69 ▲0.0268.69 ▲0.1391.56 ▲4.08
Add New Post /wp-admin/post-new.php1,513 ▼17018.86 ▲0.10382.80 ▼11.39104.37 ▼16.34
Media Library /wp-admin/upload.php1,836 ▲885.06 ▲0.06165.42 ▲9.45126.12 ▲2.08

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gamipress-wp-courseware-integration/gamipress-wp-courseware.php:236

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found


Plugin configuration 93% from 29 tests

readme.txt 94% 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
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 26 tag instead of maximum 10
You can take inspiration from this readme.txt

gamipress-wp-courseware-integration/gamipress-wp-courseware.php 92% from 13 tests

The primary PHP file in "GamiPress - WP Courseware integration" version 1.0.5 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("gamipress-wp-courseware-integration.php" instead of "gamipress-wp-courseware.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected268 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
▷ Static methods111.11%
▷ Public methods555.56%
▷ Protected methods00.00%
▷ Private methods444.44%
▷ Named functions13100.00%
▷ Anonymous functions00.00%
▷ Global constants4100.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