93% activation-add-on-for-gamipress

Code Review | Activation Add-on for GamiPress

WordPress plugin Activation Add-on for GamiPress scored 93% from 54 tests.

About plugin

  • Plugin page: activation-add-on...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.5.9+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.5.2
  • WordPress version: 5.9.2
  • First release: Nov 2, 2020
  • Latest release: Nov 3, 2020
  • Number of updates: 4
  • Update frequency: every 1.0 days
  • Top authors: konnektiv (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 264 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: ▼293.34ms] Passed 4 tests

Server-side resources used by Activation Add-on for GamiPress
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0157.44 ▲7.87
Dashboard /wp-admin3.41 ▲0.0032.01 ▼1.58
Posts /wp-admin/edit.php3.64 ▲0.0038.23 ▲0.53
Add New Post /wp-admin/post-new.php6.89 ▼0.0896.79 ▼1,165.88
Media Library /wp-admin/upload.php3.29 ▼0.0125.14 ▼6.43

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Activation Add-on for GamiPress
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,806 ▲8415.77 ▲0.146.63 ▲0.792.78 ▲0.63
Dashboard /wp-admin2,895 ▲376.15 ▼0.16120.50 ▼16.82160.50 ▲1.38
Posts /wp-admin/edit.php2,688 ▼33.24 ▲0.0064.98 ▼0.76132.49 ▼13.47
Add New Post /wp-admin/post-new.php1,760 ▲4922.48 ▲1.78431.12 ▼9.80162.59 ▲7.58
Media Library /wp-admin/upload.php1,698 ▼35.53 ▼0.01144.77 ▼0.21189.06 ▼6.13

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/activation-add-on-for-gamipress/gamipress-activation-addon.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found


Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

activation-add-on-for-gamipress/gamipress-activation-addon.php 85% from 13 tests

The entry point to "Activation Add-on for GamiPress" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("activation-add-on-for-gamipress.php" instead of "gamipress-activation-addon.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected188 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity15.00
▷ Minimum class complexity5.00
▷ Maximum class complexity25.00
Average method complexity2.65
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
▷ Static methods211.76%
▷ Public methods1270.59%
▷ Protected methods00.00%
▷ Private methods529.41%
▷ Named functions00.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected