89% edd-purchase-gravatars

Code Review | EDD Purchase Gravatars

WordPress plugin EDD Purchase Gravatars scored89%from 54 tests.

About plugin

  • Plugin page: edd-purchase-grav...
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.8
  • WordPress version: 6.3.1
  • First release: Oct 14, 2013
  • Latest release: Sep 21, 2021
  • Number of updates: 17
  • Update frequency: every 170.7 days
  • Top authors: sumobi (76.47%)cklosows (23.53%)NoseGraze (11.76%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /6,619 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.06ms] Passed 4 tests

Analyzing server-side resources used by EDD Purchase Gravatars
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0639.27 ▼5.31
Dashboard /wp-admin3.37 ▲0.0645.75 ▼5.04
Posts /wp-admin/edit.php3.48 ▲0.1245.05 ▼3.94
Add New Post /wp-admin/post-new.php5.95 ▲0.0693.11 ▲2.07
Media Library /wp-admin/upload.php3.29 ▲0.0636.02 ▲3.25

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_edd_pg_widget

Browser metrics Passed 4 tests

An overview of browser requirements for EDD Purchase Gravatars
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.73 ▲0.331.74 ▼0.4944.25 ▼3.16
Dashboard /wp-admin2,206 ▲155.83 ▲0.95116.42 ▲4.5643.49 ▲0.28
Posts /wp-admin/edit.php2,092 ▲32.02 ▲0.0037.09 ▼1.0034.43 ▲2.20
Add New Post /wp-admin/post-new.php1,514 ▼017.56 ▲0.07659.81 ▲1.3571.52 ▼1.18
Media Library /wp-admin/upload.php1,385 ▼34.11 ▼0.08108.96 ▲7.7145.93 ▲1.10

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_edd_pg_widget
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed: The official readme.txt is a good inspiration

edd-purchase-gravatars/edd-purchase-gravatars.php 77% from 13 tests

The main PHP file in "EDD Purchase Gravatars" ver. 1.0.5 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("languages")

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
Good job! No executable or dangerous file extensions detected377 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1121155309
PO File1212368

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity21.50
▷ Minimum class complexity4.00
▷ Maximum class complexity39.00
Average method complexity3.56
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods16
▷ Static methods16.25%
▷ Public methods1593.75%
▷ Protected methods00.00%
▷ Private methods16.25%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin