78% ignitiondeck

Code Review | IgnitionDeck Crowdfunding Platform

WordPress plugin IgnitionDeck Crowdfunding Platform scored78%from 54 tests.

About plugin

  • Plugin page: ignitiondeck
  • Plugin version: 1.9.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4
  • WordPress version: 6.3.1
  • First release: Mar 24, 2014
  • Latest release: Nov 30, 2023
  • Number of updates: 451
  • Update frequency: every 7.9 days
  • Top authors: nhangen (64.97%)ignitionwp (26.16%)virtuousgiant (4.88%)digisavvy (4.66%)

Code review

54 tests

User reviews

88 reviews

Install metrics

300+ active /125,540 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.94MB] [CPU: ▲0.35ms] Passed 4 tests

Server-side resources used by IgnitionDeck Crowdfunding Platform
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.41 ▲0.9451.94 ▲9.88
Dashboard /wp-admin4.25 ▲0.9055.37 ▼7.93
Posts /wp-admin/edit.php4.37 ▲1.0058.64 ▲13.38
Add New Post /wp-admin/post-new.php6.85 ▲0.9691.88 ▼13.93
Media Library /wp-admin/upload.php4.17 ▲0.9448.81 ▲13.58
Install Plugins /wp-admin/plugins.php?page=idf-plugins4.2843.59

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 156 new files
Database: no new tables, 10 new options
New WordPress options
theysaidso_admin_options
idf_key
db_upgraded
can_compress_scripts
idf_current_version
idf_transfer_key
widget_recent-posts
idf_install_flags
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by IgnitionDeck Crowdfunding Platform
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,971 ▲22413.83 ▼0.418.57 ▲6.9340.49 ▼3.03
Dashboard /wp-admin2,253 ▲755.52 ▼0.1898.38 ▼16.4447.38 ▲0.41
Posts /wp-admin/edit.php2,167 ▲642.07 ▲0.1141.97 ▲3.1744.31 ▲9.63
Add New Post /wp-admin/post-new.php1,577 ▲5123.08 ▼0.48655.18 ▲19.5454.93 ▼0.01
Media Library /wp-admin/upload.php1,463 ▲694.26 ▲0.10100.05 ▲1.1849.04 ▲8.51
Install Plugins /wp-admin/plugins.php?page=idf-plugins1,0632.0627.5332.84

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • widget_theysaidso_widget
    • idf_transfer_key
    • widget_recent-comments
    • can_compress_scripts
    • idf_key
    • widget_recent-posts
    • db_upgraded
    • idf_install_flags
    • idf_current_version
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/ignitiondeck/classes/modules/helix/templates/_helixIconMenu.php
  • 53× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_next_scheduled() in wp-content/plugins/ignitiondeck/idf-cron.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ignitiondeck/classes/modules/helix/helix-admin.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ignitiondeck/classes/class-idf_cache.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ignitiondeck/classes/class-idf-wizard.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/ignitiondeck/templates/admin/_wcSettings.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ignitiondeck/idf.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/ignitiondeck/classes/modules/helix/class-helix.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ignitiondeck/idf-wp.php:107
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/ignitiondeck/classes/modules/helix/templates/_primaryMenu.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ignitiondeck/classes/modules/helix/helix-menu.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: fee splitting, fundraising, equity, crowdfunding, donation

ignitiondeck/idf.php 92% from 13 tests

The primary PHP file in "IgnitionDeck Crowdfunding Platform" version 1.9.4 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ignitiondeck.php" instead of "idf.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin15,492 lines of code in 115 files:
LanguageFilesBlank linesComment linesLines of code
PHP609401,8776,674
CSS191491113,751
JSON4003,188
JavaScript24921031,180
Sass11320425
SVG622229
HTML13045

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity24.40
▷ Minimum class complexity1.00
▷ Maximum class complexity206.00
Average method complexity3.34
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes00.00%
Methods200
▷ Static methods105.00%
▷ Public methods17185.50%
▷ Protected methods2311.50%
▷ Private methods63.00%
Functions161
▷ Named functions15898.14%
▷ Anonymous functions31.86%
Constants7
▷ Global constants457.14%
▷ Class constants342.86%
▷ Public constants3100.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
29 PNG files occupy 2.51MB with 1.90MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png216.08KB85.92KB▼ 60.24%
images/fundify.png47.90KB11.98KB▼ 74.99%
images/demo-project.png478.18KB114.23KB▼ 76.11%
classes/modules/helix/images/helix-join-saved.png20.24KB1.71KB▼ 91.57%
images/cheer.png3.46KB0.84KB▼ 75.85%