94% gamipress-wpep-integration

Code Review | GamiPress - eLearnCommerce (WPEP) integration

WordPress plugin GamiPress - eLearnCommerce (WPEP) integration scored 94% from 54 tests.

About plugin

  • Plugin page: gamipress-wpep-in...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.9
  • WordPress version: 5.9.2
  • First release: Nov 5, 2018
  • Latest release: Jan 24, 2022
  • Number of updates: 16
  • Update frequency: every 73.5 days
  • Top authors: rubengc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,056 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼305.65ms] Passed 4 tests

An overview of server-side resources used by GamiPress - eLearnCommerce (WPEP) integration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0659.74 ▲2.35
Dashboard /wp-admin3.44 ▲0.0335.64 ▼12.87
Posts /wp-admin/edit.php3.67 ▲0.0342.56 ▲1.38
Add New Post /wp-admin/post-new.php6.91 ▼0.07106.00 ▼1,211.20
Media Library /wp-admin/upload.php3.32 ▲0.0231.70 ▲0.11

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for GamiPress - eLearnCommerce (WPEP) integration
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,823 ▲6915.15 ▼0.816.80 ▲0.312.35 ▼0.44
Dashboard /wp-admin2,920 ▲656.11 ▼0.06122.94 ▼15.86179.52 ▲7.72
Posts /wp-admin/edit.php2,721 ▲643.25 ▼0.0062.86 ▼24.79138.88 ▼10.53
Add New Post /wp-admin/post-new.php1,726 ▲3621.26 ▼0.01446.28 ▼28.88207.44 ▲51.85
Media Library /wp-admin/upload.php1,717 ▲165.54 ▲0.00141.77 ▼7.33242.69 ▲58.79

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
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)
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 fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gamipress-wpep-integration/gamipress-wpep-integration.php:226

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 97% 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:
  • Tags: You are using too many tags: 23 tag instead of maximum 10
Please take inspiration from this readme.txt

gamipress-wpep-integration/gamipress-wpep-integration.php Passed 13 tests

"GamiPress - eLearnCommerce (WPEP) integration" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
45 characters long description:
Connect GamiPress with eLearnCommerce (WPEP).

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin504 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP8197403429
JavaScript2141075

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.44
▷ 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%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin