94% award-on-click-for-gamipress

Code Review | Award On Click Add-On for GamiPress

WordPress plugin Award On Click Add-On for GamiPress scored 94% from 54 tests.

About plugin

  • Plugin page: award-on-click-fo...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.5.9+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.5.1
  • WordPress version: 5.8.1
  • First release: Oct 24, 2020
  • Latest release: Oct 24, 2020
  • Number of updates: 5
  • Update frequency: every 1.4 days
  • Top authors: konnektiv (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 221 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

An overview of server-side resources used by Award On Click Add-On for GamiPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0033.30 ▲1.51
Dashboard /wp-admin3.06 ▲0.0045.38 ▲1.82
Posts /wp-admin/edit.php3.11 ▲0.0046.49 ▲0.47
Add New Post /wp-admin/post-new.php5.42 ▼0.0288.08 ▼573.89
Media Library /wp-admin/upload.php3.00 ▲0.0035.24 ▲0.29

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Award On Click Add-On for GamiPress
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,688 ▲9216.08 ▲0.109.70 ▲0.3547.26 ▼1.24
Dashboard /wp-admin2,967 ▲335.91 ▲0.02131.78 ▼11.99107.14 ▼5.65
Posts /wp-admin/edit.php2,739 ▼02.71 ▼0.0161.08 ▼2.8589.54 ▼0.51
Add New Post /wp-admin/post-new.php1,672 ▲17418.84 ▼0.02372.18 ▼0.52105.07 ▼9.31
Media Library /wp-admin/upload.php1,810 ▲35.03 ▲0.00152.24 ▲10.22120.22 ▲2.39

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
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 server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/award-on-click-for-gamipress/gamipress-award-on-click.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Tags: Too many tags (23 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

award-on-click-for-gamipress/gamipress-award-on-click.php 92% from 13 tests

This is the main PHP file of "Award On Click Add-On for GamiPress" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("award-on-click-for-gamipress.php" instead of "gamipress-award-on-click.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin498 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript28853339
PHP13048149
JSON10010

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 images were found in this plugin