84% edd-fastbill

Code Review | EDD - FastBill Integration

WordPress plugin EDD - FastBill Integration scored84%from 54 tests.

About plugin

  • Plugin page: edd-fastbill
  • Plugin version: 1.6.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-4.9.2
  • WordPress version: 6.3.1
  • First release: Jul 4, 2016
  • Latest release: Jan 17, 2018
  • Number of updates: 15
  • Update frequency: every 37.5 days
  • Top authors: drumba (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active /1,764 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.21MB] [CPU: ▼7.37ms] Passed 4 tests

This is a short check of server-side resources used by EDD - FastBill Integration
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2240.16 ▼2.68
Dashboard /wp-admin3.51 ▲0.2146.12 ▼2.43
Posts /wp-admin/edit.php3.63 ▲0.2750.05 ▼0.56
Add New Post /wp-admin/post-new.php6.09 ▲0.2186.19 ▼22.92
Media Library /wp-admin/upload.php3.43 ▲0.2137.11 ▼1.44

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for EDD - FastBill Integration
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.21 ▼1.091.65 ▼0.6441.10 ▲0.72
Dashboard /wp-admin2,206 ▲185.86 ▲0.05103.95 ▲3.4438.71 ▼5.07
Posts /wp-admin/edit.php2,089 ▼32.02 ▲0.0241.90 ▲1.1733.79 ▼4.38
Add New Post /wp-admin/post-new.php1,542 ▲2818.44 ▲0.72632.96 ▼22.9849.83 ▼1.25
Media Library /wp-admin/upload.php1,391 ▲34.24 ▲0.1497.59 ▼14.3841.62 ▼4.73

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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 | 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
Almost there! Just fix the following items
  • 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/edd-fastbill/includes/payment-history.php:38
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/edd-fastbill/includes/frontend-functions.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/edd-fastbill/includes/register-settings.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/edd-fastbill/edd-fastbill.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'drumba\\EDD\\FastBill\\FastBill' not found in wp-content/plugins/edd-fastbill/includes/payment-actions.php:156
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/edd-fastbill/includes/template-tags.php:31

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (FastBill Settings), #2 (Payment column)
Please take inspiration from this readme.txt

edd-fastbill/edd-fastbill.php 92% from 13 tests

The primary PHP file in "EDD - FastBill Integration" version 1.6.0 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 212 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,160 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP8366436974
PO File175164136
SVG10150

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity40.67
▷ Minimum class complexity3.00
▷ Maximum class complexity101.00
Average method complexity5.58
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods1973.08%
▷ Protected methods00.00%
▷ Private methods726.92%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
2 PNG files occupy 0.24MB with 0.10MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png37.87KB22.01KB▼ 41.88%
screenshot-1.png203.52KB109.13KB▼ 46.38%