78% easy-fundraisers

Code Review | Easy Fundraisers

WordPress plugin Easy Fundraisers scored78%from 54 tests.

About plugin

  • Plugin page: easy-fundraisers
  • Plugin version: 0.1.1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.7
  • WordPress version: 6.3.1
  • First release: Mar 13, 2017
  • Latest release: May 17, 2017
  • Number of updates: 24
  • Update frequency: every 2.3 days
  • Top authors: richarddahlgren (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /796 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.17MB] [CPU: ▼4.07ms] Passed 4 tests

An overview of server-side resources used by Easy Fundraisers
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1035.66 ▼3.56
Dashboard /wp-admin3.52 ▲0.2146.34 ▲0.79
Posts /wp-admin/edit.php3.57 ▲0.2147.30 ▼1.17
Add New Post /wp-admin/post-new.php6.10 ▲0.2183.70 ▼12.32
Media Library /wp-admin/upload.php3.38 ▲0.1539.64 ▲1.29
Settings /wp-admin/edit.php?post_type=collection&page=collections-settings-menu3.4031.09
Donations /wp-admin/edit.php?post_type=collection&page=donations_admin_page3.3934.04
All Collections /wp-admin/edit.php?post_type=collection3.4834.55
Categories /wp-admin/edit-tags.php?taxonomy=collectioncategory&post_type=collection3.3733.09

Server storage [IO: ▲0.55MB] [DB: ▲0.01MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 40 new files
Database: 2 new tables, 14 new options
New tables
wp_donations_api
wp_donations
New WordPress options
easy_fundraisers_general_settings_arraykey
widget_recent-posts
can_compress_scripts
widget_recent-comments
easy_fundraisers_3colwidget_settings_arraykey
widget_theysaidso_widget
db_upgraded
widget_list_collections_widget
theysaidso_admin_options
easy_fundraisers_payex_settings_arraykey
...

Browser metrics Passed 4 tests

Checking browser requirements for Easy Fundraisers
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲9813.92 ▼0.679.54 ▲7.8635.30 ▼7.98
Dashboard /wp-admin2,243 ▲585.90 ▲1.0499.91 ▼6.8939.92 ▲0.91
Posts /wp-admin/edit.php2,126 ▲371.97 ▼0.0839.91 ▲3.6135.46 ▲0.87
Add New Post /wp-admin/post-new.php1,559 ▲4522.95 ▲5.45599.03 ▼57.5459.27 ▼0.27
Media Library /wp-admin/upload.php1,425 ▲374.23 ▲0.0399.58 ▲0.0540.92 ▼2.16
Settings /wp-admin/edit.php?post_type=collection&page=collections-settings-menu8762.0522.1724.78
Donations /wp-admin/edit.php?post_type=collection&page=donations_admin_page8322.0325.2926.16
All Collections /wp-admin/edit.php?post_type=collection1,1071.9330.9329.73
Categories /wp-admin/edit-tags.php?taxonomy=collectioncategory&post_type=collection1,2682.1327.7329.44

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 14 options in the database
    • can_compress_scripts
    • easy_fundraisers_email_settings_arraykey
    • easy_fundraisers_archive_settings_arraykey
    • easy_fundraisers_general_settings_arraykey
    • easy_fundraisers_newcol_settings_arraykey
    • widget_theysaidso_widget
    • widget_recent-posts
    • easy_fundraisers_payex_settings_arraykey
    • widget_recent-comments
    • easy_fundraisers_3colwidget_settings_arraykey
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 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
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/easy-fundraisers/api/index.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to a member function disconnect() on null in wp-content/plugins/easy-fundraisers/api/index.php:34

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 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can take inspiration from this readme.txt

easy-fundraisers/easy_fundraisers.php 85% from 13 tests

The entry point to "Easy Fundraisers" version 0.1.1.2 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("easy-fundraisers.php" instead of "easy_fundraisers.php")

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
No dangerous file extensions were detected5,398 lines of code in 36 files:
LanguageFilesBlank linesComment linesLines of code
PHP328715914,545
PO File1322453591
CSS2591255
JavaScript1097

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity15.32
▷ Minimum class complexity1.00
▷ Maximum class complexity55.00
Average method complexity2.44
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes25
▷ Abstract classes00.00%
▷ Concrete classes25100.00%
▷ Final classes00.00%
Methods249
▷ Static methods10.40%
▷ Public methods20883.53%
▷ Protected methods00.00%
▷ Private methods4116.47%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
public/images/payex_logo.png16.26KB2.01KB▼ 87.63%