84% windzfare

Code Review | Windzfare: Woocommerce based fundraising plugin

WordPress plugin Windzfare: Woocommerce based fundraising plugin scored84%from 54 tests.

About plugin

  • Plugin page: windzfare
  • Plugin version: 1.0.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4
  • WordPress version: 6.3.1
  • First release: Jun 12, 2020
  • Latest release: Jun 30, 2020
  • Number of updates: 13
  • Update frequency: every 1.4 days
  • Top authors: windzwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /746 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼10.13ms] Passed 4 tests

An overview of server-side resources used by Windzfare: Woocommerce based fundraising plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0837.07 ▼0.79
Dashboard /wp-admin3.38 ▲0.0445.97 ▼14.43
Posts /wp-admin/edit.php3.50 ▲0.1444.87 ▼6.49
Add New Post /wp-admin/post-new.php5.97 ▲0.0879.82 ▼18.82
Media Library /wp-admin/upload.php3.31 ▲0.0737.43 ▲1.70

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 79 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
windzfare_installed
can_compress_scripts
windzfare_version

Browser metrics Passed 4 tests

Windzfare: Woocommerce based fundraising plugin: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4514.33 ▲0.041.62 ▼0.0344.12 ▲6.49
Dashboard /wp-admin2,206 ▲265.56 ▼0.0587.94 ▼1.3940.64 ▼6.91
Posts /wp-admin/edit.php2,117 ▲171.95 ▼0.0336.74 ▼5.4029.60 ▼9.31
Add New Post /wp-admin/post-new.php1,538 ▲1223.26 ▲0.15634.67 ▼51.4353.32 ▼8.90
Media Library /wp-admin/upload.php1,417 ▲174.25 ▲0.0999.98 ▼5.7242.61 ▼0.91

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
  • Zombie WordPress options were found after uninstall: 8 options
    • windzfare_version
    • windzfare_installed
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/windzfare/includes/Cptui/Init.php

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 issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Please delete some tags, you are using 26 tag instead of maximum 10
Please take inspiration from this readme.txt

windzfare/windzfare.php Passed 13 tests

Analyzing the main PHP file in "Windzfare: Woocommerce based fundraising plugin" version 1.0.6
50 characters long description:
Windzfare is woocommerce based fundraising plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected40,748 lines of code in 57 files:
LanguageFilesBlank linesComment linesLines of code
Sass202,0075815,478
CSS42,32511813,827
JavaScript61,6352,8946,478
SVG2032,772
PHP234622322,171
JSON21022

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity14.47
▷ Minimum class complexity1.00
▷ Maximum class complexity53.00
Average method complexity3.08
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces8
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes15.88%
Methods111
▷ Static methods5246.85%
▷ Public methods10897.30%
▷ Protected methods00.00%
▷ Private methods32.70%
Functions4
▷ Named functions250.00%
▷ Anonymous functions250.00%
Constants18
▷ Global constants1688.89%
▷ Class constants211.11%
▷ Public constants2100.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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/fav.png0.44KB0.44KB0.00%
assets/images/logo-full.png5.00KB2.69KB▼ 46.20%
assets/images/logo.png8.83KB3.46KB▼ 60.77%