94% gamipress-jetpack-integration

Code Review | GamiPress - Jetpack integration

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

About plugin

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

Code review

54 tests

User reviews

1 review

Install metrics

80+ active / 1,967 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by GamiPress - Jetpack integration
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0153.13 ▼1.96
Dashboard /wp-admin3.41 ▲0.0132.69 ▲0.27
Posts /wp-admin/edit.php3.65 ▲0.0137.39 ▼0.11
Add New Post /wp-admin/post-new.php6.89 ▼0.0892.58 ▼1,163.63
Media Library /wp-admin/upload.php3.30 ▲0.0125.03 ▼1.28

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for GamiPress - Jetpack integration
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,792 ▲3815.94 ▲0.316.18 ▲0.302.41 ▼0.26
Dashboard /wp-admin2,913 ▲556.05 ▼0.13120.22 ▼12.16153.98 ▼6.45
Posts /wp-admin/edit.php2,722 ▲353.25 ▲0.0165.04 ▲1.52139.89 ▲0.62
Add New Post /wp-admin/post-new.php1,687 ▼1318.71 ▼2.53423.48 ▼24.02158.46 ▼1.28
Media Library /wp-admin/upload.php1,726 ▲285.53 ▲0.03141.98 ▼16.13186.31 ▼4.35

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 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-jetpack-integration/gamipress-jetpack-integration.php:237

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tags: You are using too many tags: 22 tag instead of maximum 10
You can take inspiration from this readme.txt

gamipress-jetpack-integration/gamipress-jetpack-integration.php Passed 13 tests

"GamiPress - Jetpack integration" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
31 characters long description:
Connect GamiPress with Jetpack.

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 plugin152 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP474167152

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.44
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%
Functions7
▷ Named functions7100.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