94% extend-gamipress

Code Review | Extend GamiPress

WordPress plugin Extend GamiPress scored 94% from 54 tests.

About plugin

  • Plugin page: extend-gamipress
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.4
  • WordPress version: 5.9.2
  • First release: Mar 31, 2019
  • Latest release: Apr 23, 2020
  • Number of updates: 5
  • Update frequency: every 82.0 days
  • Top authors: polyres (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active / 1,210 total downloads

Benchmarks

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
The plugin installed gracefully, with no errors

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

Server-side resources used by Extend GamiPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0552.15 ▼1.66
Dashboard /wp-admin3.46 ▲0.0533.94 ▲0.10
Posts /wp-admin/edit.php3.69 ▲0.0437.85 ▲0.28
Add New Post /wp-admin/post-new.php6.92 ▼0.0592.95 ▼1,170.73
Media Library /wp-admin/upload.php3.34 ▲0.0424.92 ▼0.10

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Extend GamiPress
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲2115.88 ▲0.285.48 ▼0.972.20 ▼0.03
Dashboard /wp-admin2,888 ▲346.12 ▼0.07125.08 ▼11.46154.64 ▼4.29
Posts /wp-admin/edit.php2,694 ▲33.23 ▲0.0162.10 ▼2.67138.69 ▼3.69
Add New Post /wp-admin/post-new.php1,711 ▼4821.33 ▼0.54446.18 ▲12.66157.56 ▼11.66
Media Library /wp-admin/upload.php1,689 ▼95.49 ▼0.05148.21 ▲0.56188.22 ▲0.32

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ExtendGamiPress\\add_filter() in wp-content/plugins/extend-gamipress/extend-gamipress.php:55

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
7 plugin tags: point, gamipress, system, gamification, hooks...

extend-gamipress/extend-gamipress.php Passed 13 tests

The main PHP script in "Extend GamiPress" version 1.0.0 is automatically included on every request by WordPress
39 characters long description:
Add WordPress System Hooks to GamiPress

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 plugin147 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13148147

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected