94% gamipress-favorites-integration

Code Review | GamiPress - Favorites integration

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

About plugin

  • Plugin page: gamipress-favorit...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.9
  • WordPress version: 5.9.2
  • First release: Feb 10, 2018
  • Latest release: Jan 24, 2022
  • Number of updates: 15
  • Update frequency: every 96.3 days
  • Top authors: rubengc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 1,988 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Server-side resources used by GamiPress - Favorites integration
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0654.48 ▲2.87
Dashboard /wp-admin3.43 ▲0.0332.02 ▼1.43
Posts /wp-admin/edit.php3.67 ▲0.0336.13 ▲0.62
Add New Post /wp-admin/post-new.php6.91 ▼0.06100.78 ▼1,203.77
Media Library /wp-admin/upload.php3.32 ▲0.0224.59 ▼1.94

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for GamiPress - Favorites integration
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,813 ▲9116.21 ▲0.435.94 ▲0.182.29 ▲0.04
Dashboard /wp-admin2,923 ▲656.16 ▼0.03115.54 ▼20.48153.32 ▼3.41
Posts /wp-admin/edit.php2,719 ▲283.24 ▲0.0064.07 ▼0.45140.24 ▼2.54
Add New Post /wp-admin/post-new.php1,680 ▲1917.05 ▲0.64401.09 ▼10.30160.03 ▲6.14
Media Library /wp-admin/upload.php1,729 ▲345.53 ▲0.03133.81 ▼8.31183.49 ▼19.77

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 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gamipress-favorites-integration/gamipress-favorites-integration.php:235

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, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: There are too many tags (14 tag instead of maximum 10)
You can look at the official readme.txt

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

Analyzing the main PHP file in "GamiPress - Favorites integration" version 1.0.2
33 characters long description:
Connect GamiPress with Favorites.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin201 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP486203201

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.58
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%
Functions9
▷ Named functions9100.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
There are no PNG files in this plugin