94% gamipress-wp-polls-integration

Code Review | GamiPress - WP-Polls integration

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

About plugin

  • Plugin page: gamipress-wp-poll...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.9
  • WordPress version: 5.9.2
  • First release: Sep 19, 2018
  • Latest release: Jan 24, 2022
  • Number of updates: 13
  • Update frequency: every 94.1 days
  • Top authors: rubengc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

90+ active / 1,693 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

Analyzing server-side resources used by GamiPress - WP-Polls integration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.4558.22 ▲39.48
Dashboard /wp-admin3.43 ▲0.0331.87 ▼2.72
Posts /wp-admin/edit.php3.67 ▲0.0335.87 ▼0.57
Add New Post /wp-admin/post-new.php6.90 ▼0.0789.65 ▼1,236.36
Media Library /wp-admin/upload.php3.32 ▲0.0225.38 ▼2.90

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for GamiPress - WP-Polls integration
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,813 ▲7116.01 ▲0.026.82 ▲1.293.34 ▲1.02
Dashboard /wp-admin2,923 ▲656.16 ▼0.04120.32 ▼9.98154.55 ▼5.77
Posts /wp-admin/edit.php2,719 ▲283.25 ▲0.0161.50 ▼1.10139.89 ▼6.41
Add New Post /wp-admin/post-new.php1,681 ▲2020.54 ▼1.24417.45 ▲14.02157.36 ▲7.77
Media Library /wp-admin/upload.php1,723 ▲255.55 ▲0.00142.79 ▲8.55188.64 ▲7.11

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
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
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gamipress-wp-polls-integration/gamipress-wp-polls-integration.php:238

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
These attributes need to be fixed:
  • Tags: You are using too many tags: 17 tag instead of maximum 10
The official readme.txt might help

gamipress-wp-polls-integration/gamipress-wp-polls-integration.php Passed 13 tests

The principal PHP file in "GamiPress - WP-Polls integration" v. 1.0.0 is loaded by WordPress automatically on each request
32 characters long description:
Connect GamiPress with WP-Polls.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin204 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP599216204

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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 images were found in this plugin