90% crowdfunding-for-woocommerce

Code Review | Crowdfunding for WooCommerce

WordPress plugin Crowdfunding for WooCommerce scored90%from 54 tests.

About plugin

  • Plugin page: crowdfunding-for-...
  • Plugin version: 3.1.11
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.2
  • WordPress version: 6.3.1
  • First release: Aug 20, 2015
  • Latest release: Jul 15, 2023
  • Number of updates: 107
  • Update frequency: every 27.0 days
  • Top authors: algoritmika (76.64%)wpwham (24.3%)

Code review

54 tests

User reviews

12 reviews

Install metrics

400+ active /30,303 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼0.54ms] Passed 4 tests

An overview of server-side resources used by Crowdfunding for WooCommerce
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0340.47 ▼3.23
Dashboard /wp-admin9.18 ▲5.791,052,180.01 ▲1,052,111.66
Posts /wp-admin/edit.php3.49 ▲0.1055.51 ▲4.78
Add New Post /wp-admin/post-new.php5.96 ▲0.0397.08 ▼2.14
Media Library /wp-admin/upload.php3.30 ▲0.0338.39 ▼1.56

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

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

Browser metrics Passed 4 tests

Crowdfunding for WooCommerce: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.35 ▼0.261.66 ▲0.1243.45 ▲3.19
Dashboard /wp-admin2,198 ▲245.62 ▲0.0884.54 ▼3.8339.94 ▼2.24
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.0241.42 ▲7.5638.13 ▲5.66
Add New Post /wp-admin/post-new.php1,526 ▼023.34 ▲0.20659.56 ▼37.8365.15 ▼3.40
Media Library /wp-admin/upload.php1,394 ▼64.21 ▲0.10101.26 ▼15.1942.78 ▼7.60

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

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

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: crowdfunding, woocommerce

crowdfunding-for-woocommerce/crowdfunding-for-woocommerce.php 92% from 13 tests

"Crowdfunding for WooCommerce" version 3.1.11's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Requires at least: Required version does not match the one declared in readme.txt ("4.4" instead of "3.0")

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
Everything looks great! No dangerous files found in this plugin4,108 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP214031,2923,290
PO File2278348659
JavaScript51077158
CSS1281

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity29.24
▷ Minimum class complexity1.00
▷ Maximum class complexity109.00
Average method complexity4.69
▷ Minimum method complexity1.00
▷ Maximum method complexity62.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes15.88%
Methods130
▷ Static methods64.62%
▷ Public methods130100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin