84% gamipress-link

Code Review | GamiPress - Link

WordPress plugin GamiPress - Link scored84%from 54 tests.

About plugin

  • Plugin page: gamipress-link
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Nov 13, 2017
  • Latest release: Sep 4, 2023
  • Number of updates: 43
  • Update frequency: every 49.3 days
  • Top authors: rubengc (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active /16,816 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

An overview of server-side resources used by GamiPress - Link
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0242.79 ▲0.93
Dashboard /wp-admin3.37 ▲0.0252.39 ▲0.41
Posts /wp-admin/edit.php3.48 ▲0.0849.55 ▲1.60
Add New Post /wp-admin/post-new.php5.95 ▲0.0287.84 ▼22.78
Media Library /wp-admin/upload.php3.29 ▲0.0241.57 ▲4.18

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for GamiPress - Link
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲2014.73 ▲0.381.97 ▼0.0743.62 ▼1.17
Dashboard /wp-admin2,212 ▲325.64 ▼0.0186.40 ▼2.0239.94 ▼8.07
Posts /wp-admin/edit.php2,121 ▲212.04 ▲0.0536.96 ▲1.0137.36 ▲4.44
Add New Post /wp-admin/post-new.php1,543 ▲1722.94 ▼0.57674.71 ▼27.4453.42 ▲1.20
Media Library /wp-admin/upload.php1,420 ▲234.22 ▼0.01110.88 ▲5.2947.64 ▲2.11

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

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
Everything seems fine, however this is by no means an exhaustive test

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 trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gamipress-link/gamipress-link.php:205

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt is a good inspiration

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

The primary PHP file in "GamiPress - Link" version 1.1.4 is used by WordPress to initiate all plugin functionality
73 characters long description:
Add activity triggers based on link clicks generated by [gamipress_link].

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
Success! There were no dangerous files found in this plugin705 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP10189399565
JavaScript44211140

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.53
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
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%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin