94% gamipress-awesome-support-integration

Code Review | GamiPress - Awesome Support integration

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

About plugin

  • Plugin page: gamipress-awesome...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.9
  • WordPress version: 5.8.1
  • First release: May 25, 2021
  • Latest release: Jan 24, 2022
  • Number of updates: 4
  • Update frequency: every 61.8 days
  • Top authors: rubengc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,254 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by GamiPress - Awesome Support integration
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1229.68 ▲11.02
Dashboard /wp-admin3.06 ▼0.0030.15 ▼6.20
Posts /wp-admin/edit.php3.12 ▲0.0132.18 ▲1.47
Add New Post /wp-admin/post-new.php5.42 ▼0.0169.33 ▼736.17
Media Library /wp-admin/upload.php3.01 ▲0.0021.78 ▼0.04

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for GamiPress - Awesome Support integration
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,695 ▲6815.95 ▼0.035.03 ▼2.0675.81 ▼1.18
Dashboard /wp-admin2,958 ▲626.13 ▼0.04121.34 ▼11.62182.18 ▲8.80
Posts /wp-admin/edit.php2,770 ▲273.24 ▲0.0063.90 ▼2.54135.43 ▼4.51
Add New Post /wp-admin/post-new.php3,822 ▲17119.06 ▲0.55431.68 ▼35.31158.81 ▼21.62
Media Library /wp-admin/upload.php1,780 ▲285.49 ▼0.03140.08 ▼8.04184.85 ▼6.40

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 shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 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-awesome-support-integration/gamipress-awesome-support.php:189

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
You can take inspiration from this readme.txt

gamipress-awesome-support-integration/gamipress-awesome-support.php 92% from 13 tests

"GamiPress - Awesome Support integration" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gamipress-awesome-support-integration.php" instead of "gamipress-awesome-support.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
There were no executable files found in this plugin172 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP375194172

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods7
▷ Static methods114.29%
▷ Public methods342.86%
▷ Protected methods00.00%
▷ Private methods457.14%
Functions9
▷ Named functions9100.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
No PNG files were detected