83% edd-blockonomics

Code Review | Bitcoin Easy Digital Downloads - Blockonomics

WordPress plugin Bitcoin Easy Digital Downloads - Blockonomics scored83%from 54 tests.

About plugin

  • Plugin page: edd-blockonomics
  • Plugin version: 1.3.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9
  • WordPress version: 6.3.1
  • First release: Oct 24, 2018
  • Latest release: Feb 4, 2022
  • Number of updates: 25
  • Update frequency: every 48.0 days
  • Top authors: blockonomics (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /4,615 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.00MB] [CPU: ▼5.90ms] Passed 4 tests

Analyzing server-side resources used by Bitcoin Easy Digital Downloads - Blockonomics
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.90 ▼5.71
Dashboard /wp-admin3.31 ▲0.0046.30 ▼1.14
Posts /wp-admin/edit.php3.36 ▲0.0047.59 ▲3.44
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.56 ▼14.89
Media Library /wp-admin/upload.php3.23 ▲0.0033.15 ▼1.84

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Bitcoin Easy Digital Downloads - Blockonomics
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.16 ▼1.214.60 ▲2.9441.42 ▼5.79
Dashboard /wp-admin2,206 ▲185.86 ▲0.8598.74 ▼19.5637.23 ▼10.42
Posts /wp-admin/edit.php2,089 ▼02.05 ▼0.0136.22 ▼3.5132.51 ▼9.03
Add New Post /wp-admin/post-new.php1,533 ▲523.28 ▲4.92636.89 ▼40.2154.93 ▼9.70
Media Library /wp-admin/upload.php1,388 ▲64.29 ▲0.1395.73 ▼3.8440.35 ▼1.45

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

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 | 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
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/edd-blockonomics/track.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/edd-blockonomics/order.php:1

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Please add descriptions for these screenshots #0, #0 in edd-blockonomics/assets to your readme.txt
  • Contributors: Contributors not specified
Please take inspiration from this readme.txt

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

Analyzing the main PHP file in "Bitcoin Easy Digital Downloads - Blockonomics" version 1.3.7
You should first fix the following items:
  • Domain Path: The domain path folder was not found ("/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
Everything looks great! No dangerous files found in this plugin1,531 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP412671981
JavaScript643327296
CSS3428254

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity41.50
▷ Minimum class complexity31.00
▷ Maximum class complexity52.00
Average method complexity3.31
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods35
▷ Static methods00.00%
▷ Public methods3085.71%
▷ Protected methods00.00%
▷ Private methods514.29%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants00.00%
▷ Class constants6100.00%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/bitcoin.png1.00KB0.92KB▼ 7.70%