74% addon-paypal-for-contact-form-7

Code Review | Addon Paypal For Contact Form 7

WordPress plugin Addon Paypal For Contact Form 7 scored74%from 54 tests.

About plugin

  • Plugin page: addon-paypal-for-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-6.3.1
  • WordPress version: 6.3.1
  • First release: Aug 23, 2022
  • Latest release: Sep 26, 2023
  • Number of updates: 6
  • Update frequency: every 66.5 days
  • Top authors: silverplugins217 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /242 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

A check of server-side resources used by Addon Paypal For Contact Form 7
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2942.51 ▼0.44
Dashboard /wp-admin3.58 ▲0.2853.29 ▲2.73
Posts /wp-admin/edit.php3.69 ▲0.3457.09 ▲6.61
Add New Post /wp-admin/post-new.php6.18 ▲0.3089.52 ▼11.06
Media Library /wp-admin/upload.php3.50 ▲0.2845.87 ▲10.15
Paypal Entries /wp-admin/admin.php?page=apwcf7_paypal_entries3.4837.05

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: 1 new table, 6 new options
New tables
wp_apwcf7_forms
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Addon Paypal For Contact Form 7
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲13013.87 ▼0.259.47 ▲7.5440.20 ▼0.45
Dashboard /wp-admin2,211 ▲345.58 ▼0.0984.98 ▼2.0942.69 ▲0.27
Posts /wp-admin/edit.php2,120 ▲202.02 ▲0.0741.67 ▼4.6936.79 ▼1.92
Add New Post /wp-admin/post-new.php1,551 ▲2217.96 ▼5.81664.91 ▲16.7276.13 ▲17.59
Media Library /wp-admin/upload.php1,419 ▲224.22 ▲0.0298.94 ▼12.3745.73 ▼2.40
Paypal Entries /wp-admin/admin.php?page=apwcf7_paypal_entries8881.6928.6526.01

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_apwcf7_forms
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addon-paypal-for-contact-form-7/main/resources/apwcf7-language.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/addon-paypal-for-contact-form-7/main/backend/apwcf7-cf7-panel.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/addon-paypal-for-contact-form-7/paypal-with-contact-form-7.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addon-paypal-for-contact-form-7/main/backend/apwcf7-export-csv.php:133
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addon-paypal-for-contact-form-7/main/resources/apwcf7-createtable.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addon-paypal-for-contact-form-7/main/resources/apwcf7-load-js-css.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addon-paypal-for-contact-form-7/main/resources/apwcf7-installation-require.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/addon-paypal-for-contact-form-7/main/backend/apwcf7-payment.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% 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:
  • Contributors: Contributors not specified
Please take inspiration from this readme.txt

addon-paypal-for-contact-form-7/paypal-with-contact-form-7.php 92% from 13 tests

This is the main PHP file of "Addon Paypal For Contact Form 7" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("addon-paypal-for-contact-form-7.php" instead of "paypal-with-contact-form-7.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
No dangerous file extensions were detected1,702 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP9360591,471
CSS280127
JavaScript2195104

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity18.25
▷ Minimum class complexity2.00
▷ Maximum class complexity44.00
Average method complexity4.14
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods22
▷ Static methods00.00%
▷ Public methods1881.82%
▷ Protected methods14.55%
▷ Private methods313.64%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/image/plus-circular-button.png0.94KB0.69KB▼ 26.59%
assets/image/plus-circular-button_1.png0.62KB0.38KB▼ 39.27%
assets/image/minus.png0.61KB0.37KB▼ 40.19%
assets/image/minus_1.png0.91KB0.67KB▼ 27.06%