79% paypro-gateways-easy-digital-downloads

Code Review | PayPro Gateways - Easy Digital Downloads

WordPress plugin PayPro Gateways - Easy Digital Downloads scored79%from 54 tests.

About plugin

  • Plugin page: paypro-gateways-e...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.5
  • WordPress version: 6.3.1
  • First release: Sep 16, 2020
  • Latest release: Sep 25, 2020
  • Number of updates: 7
  • Update frequency: every 1.3 days
  • Top authors: paypro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /553 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
Install script ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼5.46ms] Passed 4 tests

An overview of server-side resources used by PayPro Gateways - Easy Digital Downloads
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.27 ▼7.30
Dashboard /wp-admin3.31 ▼0.0451.54 ▼7.29
Posts /wp-admin/edit.php3.36 ▲0.0048.32 ▲2.59
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.74 ▼9.82
Media Library /wp-admin/upload.php3.23 ▲0.0034.45 ▲2.78

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for PayPro Gateways - Easy Digital Downloads
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.20 ▼1.031.66 ▼0.3844.81 ▲2.93
Dashboard /wp-admin2,206 ▲185.83 ▼0.05102.37 ▼13.7440.07 ▼2.22
Posts /wp-admin/edit.php2,089 ▼02.05 ▲0.0038.97 ▲1.1834.42 ▼0.03
Add New Post /wp-admin/post-new.php1,533 ▲1923.35 ▲5.79664.92 ▼36.5953.83 ▼11.45
Media Library /wp-admin/upload.php1,388 ▼04.30 ▲0.09101.96 ▲0.9845.21 ▼1.39

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

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

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 18 tag instead of maximum 10
The official readme.txt is a good inspiration

paypro-gateways-easy-digital-downloads/paypro-gateways-edd.php 85% from 13 tests

The primary PHP file in "PayPro Gateways - Easy Digital Downloads" version 1.0.3 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • 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
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("paypro-gateways-easy-digital-downloads.php" instead of "paypro-gateways-edd.php")

Code Analysis 5% from 3 tests

File types 0% from 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
Please make sure to remedy the following
  • Do not include executable or dangerous files in your plugin
    • .crt - Security Certificate in Firefox, IE, Chrome, Safari
      • wp-content/plugins/paypro-gateways-easy-digital-downloads/vendor/paypro/paypro-php-v1/data/ca-bundle.crt
1,141 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
PHP29240272960
PO File131081
JSON20073
Markdown115027

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity4.86
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity1.98
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes22
▷ Abstract classes29.09%
▷ Concrete classes2090.91%
▷ Final classes00.00%
Methods91
▷ Static methods1415.38%
▷ Public methods8694.51%
▷ Protected methods00.00%
▷ Private methods55.49%
Functions5
▷ Named functions480.00%
▷ Anonymous functions120.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin