94% gamipress-wpforo-integration

Code Review | GamiPress - wpForo integration

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

About plugin

  • Plugin page: gamipress-wpforo-...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.9
  • WordPress version: 5.9.2
  • First release: Dec 5, 2018
  • Latest release: Feb 28, 2022
  • Number of updates: 19
  • Update frequency: every 62.2 days
  • Top authors: rubengc (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active / 3,701 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 successfully, without throwing any errors or notices

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

Analyzing server-side resources used by GamiPress - wpForo integration
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.01110.01 ▼68.75
Dashboard /wp-admin3.41 ▲0.0132.99 ▼2.92
Posts /wp-admin/edit.php3.65 ▲0.0139.38 ▼0.03
Add New Post /wp-admin/post-new.php6.89 ▼0.0898.23 ▼1,157.89
Media Library /wp-admin/upload.php3.30 ▲0.0124.55 ▼0.54

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for GamiPress - wpForo integration
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,823 ▲10116.19 ▲0.795.84 ▼0.902.52 ▼2.30
Dashboard /wp-admin2,923 ▲736.13 ▼0.02136.42 ▲9.80164.63 ▼15.70
Posts /wp-admin/edit.php2,722 ▲313.38 ▲0.1564.69 ▲1.40135.58 ▼10.70
Add New Post /wp-admin/post-new.php1,680 ▲1216.11 ▼2.82395.14 ▼11.76195.31 ▲40.35
Media Library /wp-admin/upload.php1,725 ▲275.52 ▲0.02133.52 ▼1.61186.94 ▼49.44

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller 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)
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just 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-wpforo-integration/gamipress-wpforo.php:241

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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

gamipress-wpforo-integration/gamipress-wpforo.php 92% from 13 tests

The principal PHP file in "GamiPress - wpForo integration" v. 1.0.5 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("gamipress-wpforo-integration.php" instead of "gamipress-wpforo.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin938 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP7340459884
CSS24043
JavaScript20011

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.51
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity2.78
▷ Minimum method complexity1.00
▷ Maximum method complexity8.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%
Functions32
▷ Named functions32100.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