94% gamipress-simplepress-integration

Code Review | GamiPress - Simple:Press integration

WordPress plugin GamiPress - Simple:Press integration scored 94% from 54 tests.

About plugin

  • Plugin page: gamipress-simplep...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.9
  • WordPress version: 5.9.2
  • First release: Nov 21, 2018
  • Latest release: Jan 24, 2022
  • Number of updates: 15
  • Update frequency: every 77.3 days
  • Top authors: rubengc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 776 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼307.58ms] Passed 4 tests

A check of server-side resources used by GamiPress - Simple:Press integration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0651.85 ▼4.34
Dashboard /wp-admin3.43 ▲0.0335.02 ▲0.79
Posts /wp-admin/edit.php3.67 ▲0.0382.80 ▲44.62
Add New Post /wp-admin/post-new.php6.90 ▼0.0795.71 ▼1,221.16
Media Library /wp-admin/upload.php3.32 ▲0.0225.88 ▼5.59

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for GamiPress - Simple:Press integration
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,813 ▲6915.98 ▲0.315.83 ▼0.582.29 ▼0.93
Dashboard /wp-admin2,923 ▲626.16 ▼0.02117.99 ▼16.02165.98 ▼1.71
Posts /wp-admin/edit.php2,719 ▲343.24 ▲0.0164.66 ▲0.35150.48 ▼0.04
Add New Post /wp-admin/post-new.php1,767 ▲10120.94 ▲0.55475.74 ▲39.79175.78 ▲4.59
Media Library /wp-admin/upload.php1,726 ▲285.52 ▲0.00159.13 ▲6.34224.54 ▲18.76

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 | 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 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-simplepress-integration/gamipress-simplepress.php:239

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 17 tag instead of maximum 10
Please take inspiration from this readme.txt

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

Analyzing the main PHP file in "GamiPress - Simple:Press integration" version 1.0.1
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-simplepress-integration.php" instead of "gamipress-simplepress.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin310 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP5136281310

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.47
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.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 images were found in this plugin