94% gamipress-wishlist-member-integration

Code Review | GamiPress - WishList Member integration

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

About plugin

  • Plugin page: gamipress-wishlis...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-5.9
  • WordPress version: 5.9.2
  • First release: Jul 21, 2020
  • Latest release: Jan 24, 2022
  • Number of updates: 10
  • Update frequency: every 55.3 days
  • Top authors: rubengc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 638 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

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

Analyzing server-side resources used by GamiPress - WishList Member integration
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0154.74 ▲4.75
Dashboard /wp-admin3.41 ▲0.0133.50 ▼0.08
Posts /wp-admin/edit.php3.64 ▲0.0136.57 ▼4.03
Add New Post /wp-admin/post-new.php6.88 ▼0.0993.31 ▼1,179.89
Media Library /wp-admin/upload.php3.30 ▲0.0023.61 ▼2.32

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for GamiPress - WishList Member integration
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,825 ▲8316.41 ▲0.546.33 ▼0.011.88 ▼0.25
Dashboard /wp-admin2,935 ▲556.49 ▼0.03130.49 ▼13.87158.39 ▼2.23
Posts /wp-admin/edit.php2,722 ▲373.45 ▲0.0261.94 ▼5.01138.31 ▼11.16
Add New Post /wp-admin/post-new.php1,630 ▼8119.80 ▼1.15402.46 ▼34.20155.16 ▲5.83
Media Library /wp-admin/upload.php1,726 ▲285.75 ▲0.03154.79 ▲18.15195.79 ▲7.39

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gamipress-wishlist-member-integration/gamipress-wishlist-member.php:199

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
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
These attributes need your attention:
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
The official readme.txt is a good inspiration

gamipress-wishlist-member-integration/gamipress-wishlist-member.php 92% from 13 tests

"GamiPress - WishList Member integration" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("gamipress-wishlist-member-integration.php" instead of "gamipress-wishlist-member.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected365 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP7135276326
JavaScript214439

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.71
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods7
▷ Static methods114.29%
▷ Public methods342.86%
▷ Protected methods00.00%
▷ Private methods457.14%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin