84% edd-wepay-oauth2

Code Review | Crowdfunding WePay oAuth 2.0 by Astoundify

WordPress plugin Crowdfunding WePay oAuth 2.0 by Astoundify scored 84% from 54 tests.

About plugin

  • Plugin page: edd-wepay-oauth2
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9
  • WordPress version: 6.3.1
  • First release: Jul 30, 2013
  • Latest release: Jun 25, 2014
  • Number of updates: 24
  • Update frequency: every 13.8 days
  • Top authors: adampickering (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 3,238 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▲1.97ms] Passed 4 tests

An overview of server-side resources used by Crowdfunding WePay oAuth 2.0 by Astoundify
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.65 ▲2.42
Dashboard /wp-admin3.31 ▲0.0150.63 ▲5.66
Posts /wp-admin/edit.php3.36 ▲0.0147.72 ▼0.76
Add New Post /wp-admin/post-new.php5.89 ▲0.0194.25 ▲6.12
Media Library /wp-admin/upload.php3.24 ▲0.0136.56 ▲0.56

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Crowdfunding WePay oAuth 2.0 by Astoundify: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.44 ▲0.161.81 ▲0.2135.79 ▼0.72
Dashboard /wp-admin2,206 ▲174.84 ▼0.10111.85 ▼8.5139.53 ▼2.97
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0140.20 ▲4.5333.82 ▲2.79
Add New Post /wp-admin/post-new.php1,536 ▲823.38 ▼0.12658.95 ▼32.6760.25 ▼2.10
Media Library /wp-admin/upload.php1,391 ▲34.22 ▼0.16104.08 ▲3.5746.63 ▲1.80

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
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/edd-wepay-oauth2/vendor/iframe_demoapp/list_accounts.php
    • > /wp-content/plugins/edd-wepay-oauth2/vendor/iframe_demoapp/checkout.php

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: gateway, easy digital downloads, downloads, wepay

edd-wepay-oauth2/wepay-oauth2.php 85% from 13 tests

The primary PHP file in "Crowdfunding WePay oAuth 2.0 by Astoundify" version 0.4 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("edd-wepay-oauth2.php" instead of "wepay-oauth2.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin608 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4147292547
Markdown124061

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity8.83
▷ Minimum class complexity1.00
▷ Maximum class complexity28.00
Average method complexity3.24
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes116.67%
Methods21
▷ Static methods628.57%
▷ Public methods1780.95%
▷ Protected methods00.00%
▷ Private methods419.05%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants112.50%
▷ Class constants787.50%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin