83% eth-fundraiser

Code Review | Ethereum fundraiser

WordPress plugin Ethereum fundraiser scored 83% from 54 tests.

About plugin

  • Plugin page: eth-fundraiser
  • Plugin version: 0.1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Feb 4, 2023
  • Latest release: Feb 9, 2023
  • Number of updates: 4
  • Update frequency: every 1.3 days
  • Top authors: martelus (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼4.31ms] Passed 4 tests

This is a short check of server-side resources used by Ethereum fundraiser
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.92 ▲0.95
Dashboard /wp-admin3.32 ▲0.0244.13 ▼2.80
Posts /wp-admin/edit.php3.37 ▲0.0247.91 ▼1.58
Add New Post /wp-admin/post-new.php5.90 ▲0.0291.53 ▼13.79
Media Library /wp-admin/upload.php3.25 ▲0.0234.33 ▲2.10

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
eth_fundraiser_version
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Ethereum fundraiser
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,973 ▲23814.37 ▼0.0126.88 ▲25.1035.19 ▼9.43
Dashboard /wp-admin2,233 ▲454.92 ▲0.0597.82 ▼15.0776.19 ▲32.50
Posts /wp-admin/edit.php2,110 ▲182.01 ▲0.0136.92 ▼4.1935.28 ▲1.25
Add New Post /wp-admin/post-new.php1,541 ▲2417.84 ▲0.17739.52 ▲146.8763.63 ▲12.06
Media Library /wp-admin/upload.php1,412 ▲214.19 ▼0.0397.10 ▲0.8770.74 ▲27.11

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • eth_fundraiser_version
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eth-fundraiser/inc/shortcodes.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/eth-fundraiser/eth-fundraiser-wp-plugin.php:15

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)
No browser errors were detected

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 require attention:
  • Screenshots: Please add an image for screenshot #1 (Ethereum Fundraiser's WP admin screen.)
Please take inspiration from this readme.txt

eth-fundraiser/eth-fundraiser-wp-plugin.php 77% from 13 tests

Analyzing the main PHP file in "Ethereum fundraiser" version 0.1.0
It is important to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("eth-fundraiser.php" instead of "eth-fundraiser-wp-plugin.php")
  • Description: The description should be shorter than 140 characters (currently 146 characters long)
  • Text Domain: Please use dashes and lowercase characters for text domains

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected408 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP37364392
Markdown16013
JavaScript1062
SVG1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity45.00
▷ Minimum class complexity45.00
▷ Maximum class complexity45.00
Average method complexity9.80
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions350.00%
▷ Anonymous functions350.00%
Constants3
▷ Global constants3100.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