94% gamipress-groundhogg-integration

Code Review | GamiPress - Groundhogg integration

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

About plugin

  • Plugin page: gamipress-groundh...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.9
  • WordPress version: 5.9.2
  • First release: Jul 15, 2020
  • Latest release: Jan 24, 2022
  • Number of updates: 9
  • Update frequency: every 62.0 days
  • Top authors: rubengc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 727 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
This plugin's installer ran successfully

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

Analyzing server-side resources used by GamiPress - Groundhogg integration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0696.51 ▲34.22
Dashboard /wp-admin3.44 ▲0.0241.08 ▼22.29
Posts /wp-admin/edit.php3.67 ▲0.0242.09 ▼0.46
Add New Post /wp-admin/post-new.php6.91 ▼0.06104.65 ▼1,190.66
Media Library /wp-admin/upload.php3.32 ▲0.0229.90 ▼5.08

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for GamiPress - Groundhogg integration
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,813 ▲5916.24 ▲0.576.33 ▲0.132.00 ▼0.88
Dashboard /wp-admin2,920 ▲606.16 ▲0.05120.91 ▼5.26221.09 ▲60.51
Posts /wp-admin/edit.php2,722 ▲523.25 ▲0.0069.84 ▼30.87137.00 ▼6.93
Add New Post /wp-admin/post-new.php1,687 ▼3218.96 ▼3.51377.70 ▼98.12206.39 ▲47.59
Media Library /wp-admin/upload.php1,726 ▲255.53 ▲0.03135.64 ▼7.12259.43 ▲71.46

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gamipress-groundhogg-integration/gamipress-groundhogg-integration.php:220

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

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

This is the main PHP file of "GamiPress - Groundhogg integration" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
34 characters long description:
Connect GamiPress with Groundhogg.

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
Success! There were no dangerous files found in this plugin217 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP5107256217

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.42
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin