84% crowdfunding-and-fundraising-campaign-builder-by-payform

Code Review | Crowdfunding and Fundraising Campaign Builder for PayForm

WordPress plugin Crowdfunding and Fundraising Campaign Builder for PayForm scored84%from 54 tests.

About plugin

  • Plugin page: crowdfunding-and-...
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9
  • WordPress version: 6.3.1
  • First release: Nov 30, 2017
  • Latest release: Sep 1, 2018
  • Number of updates: 5
  • Update frequency: every 55.8 days
  • Top authors: payform (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /1,245 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼8.92ms] Passed 4 tests

Analyzing server-side resources used by Crowdfunding and Fundraising Campaign Builder for PayForm
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0046.76 ▲5.38
Dashboard /wp-admin3.31 ▼0.0452.25 ▼13.48
Posts /wp-admin/edit.php3.36 ▲0.0045.26 ▼4.73
Add New Post /wp-admin/post-new.php5.89 ▲0.0086.88 ▼20.36
Media Library /wp-admin/upload.php3.23 ▲0.0038.56 ▲2.89

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Crowdfunding and Fundraising Campaign Builder for PayForm
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.081.78 ▲0.0443.61 ▼9.57
Dashboard /wp-admin2,192 ▲155.61 ▼0.0188.32 ▼4.9942.64 ▼1.35
Posts /wp-admin/edit.php2,100 ▼32.02 ▲0.0134.76 ▼4.2433.41 ▼2.56
Add New Post /wp-admin/post-new.php1,526 ▼023.16 ▼0.35660.70 ▼35.1253.94 ▼3.15
Media Library /wp-admin/upload.php1,403 ▲64.22 ▲0.0395.97 ▼25.6642.30 ▼5.22

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • 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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× 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/crowdfunding-and-fundraising-campaign-builder-by-payform/payform.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: credit cards, membership, mastercard, recurring payments, visa...

crowdfunding-and-fundraising-campaign-builder-by-payform/payform.php 92% from 13 tests

Analyzing the main PHP file in "Crowdfunding and Fundraising Campaign Builder for PayForm" version 2.0
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("crowdfunding-and-fundraising-campaign-builder-by-payform.php" instead of "payform.php")

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
Everything looks great! No dangerous files found in this plugin42 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP112742

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin