94% gamipress-activity-by-category

Code Review | GamiPress - Activity by Category

WordPress plugin GamiPress - Activity by Category scored 94% from 54 tests.

About plugin

  • Plugin page: gamipress-activit...
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.8
  • WordPress version: 5.8.1
  • First release: Oct 27, 2017
  • Latest release: Aug 4, 2021
  • Number of updates: 26
  • Update frequency: every 53.0 days
  • Top authors: rubengc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active / 6,223 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼143.64ms] Passed 4 tests

This is a short check of server-side resources used by GamiPress - Activity by Category
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1436.10 ▲17.35
Dashboard /wp-admin3.08 ▲0.0345.12 ▼3.80
Posts /wp-admin/edit.php3.13 ▲0.0345.56 ▲1.74
Add New Post /wp-admin/post-new.php5.44 ▲0.0193.91 ▼564.12
Media Library /wp-admin/upload.php3.02 ▲0.0234.25 ▼8.38

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for GamiPress - Activity by Category
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,726 ▲13016.23 ▲0.9911.69 ▲2.1343.45 ▼5.80
Dashboard /wp-admin2,993 ▲625.91 ▼0.07142.63 ▼0.60121.55 ▲20.00
Posts /wp-admin/edit.php2,765 ▲262.84 ▲0.1377.06 ▲14.8486.89 ▼9.11
Add New Post /wp-admin/post-new.php1,699 ▲20118.74 ▼0.08402.20 ▼28.44104.91 ▼6.34
Media Library /wp-admin/upload.php1,831 ▲245.04 ▲0.02155.87 ▲0.03110.08 ▼18.09

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
Uninstall script 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)
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 items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gamipress-activity-by-category/gamipress-activity-by-category.php:207

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
You can take inspiration from this readme.txt

gamipress-activity-by-category/gamipress-activity-by-category.php 92% from 13 tests

The primary PHP file in "GamiPress - Activity by Category" version 1.0.8 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.0" instead of "4.4")

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
Everything looks great! No dangerous files found in this plugin400 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code

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.66
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
▷ Static methods111.11%
▷ Public methods555.56%
▷ Protected methods00.00%
▷ Private methods444.44%
▷ Named functions17100.00%
▷ Anonymous functions00.00%
▷ 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