84% gamipress-edd-points-per-purchase-total

Code Review | GamiPress - Easy Digital Downloads Points Per Purchase Total

WordPress plugin GamiPress - Easy Digital Downloads Points Per Purchase Total scored84%from 54 tests.

About plugin

  • Plugin page: gamipress-edd-poi...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.3
  • WordPress version: 6.3.1
  • First release: Feb 24, 2020
  • Latest release: Sep 4, 2023
  • Number of updates: 13
  • Update frequency: every 99.1 days
  • Top authors: rubengc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,056 total downloads

Benchmarks

Plugin footprint 83% from 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.01MB] [CPU: ▼7.65ms] Passed 4 tests

This is a short check of server-side resources used by GamiPress - Easy Digital Downloads Points Per Purchase Total
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0237.50 ▼5.07
Dashboard /wp-admin3.33 ▼0.0244.44 ▼20.40
Posts /wp-admin/edit.php3.38 ▲0.0248.32 ▲1.49
Add New Post /wp-admin/post-new.php5.91 ▲0.0289.52 ▼6.60
Media Library /wp-admin/upload.php3.25 ▲0.0236.65 ▲3.32

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for GamiPress - Easy Digital Downloads Points Per Purchase Total
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲9913.26 ▼1.091.91 ▼0.0042.12 ▼0.78
Dashboard /wp-admin2,226 ▲385.88 ▲0.99107.40 ▼9.9741.74 ▼6.79
Posts /wp-admin/edit.php2,109 ▲202.01 ▼0.0541.17 ▲0.4838.50 ▼2.49
Add New Post /wp-admin/post-new.php1,529 ▲1517.55 ▼0.20680.12 ▲54.3860.19 ▲3.09
Media Library /wp-admin/upload.php1,402 ▲144.15 ▼0.12105.14 ▼4.0847.80 ▲1.38

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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 trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/gamipress-edd-points-per-purchase-total/gamipress-edd-points-per-purchase-total.php:223

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

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
These attributes need your attention:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
You can look at the official readme.txt

gamipress-edd-points-per-purchase-total/gamipress-edd-points-per-purchase-total.php Passed 13 tests

This is the main PHP file of "GamiPress - Easy Digital Downloads Points Per Purchase Total" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
62 characters long description:
Award points based on Easy Digital Downloads purchase's total.

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
Good job! No executable or dangerous file extensions detected224 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP4100203212
JavaScript24112

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity7.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%
Constants5
▷ Global constants5100.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