10% shopp-wufoo

Code Review | Shopp + Wufoo

WordPress plugin Shopp + Wufoo scored10%from 54 tests.

About plugin

  • Plugin page: shopp-wufoo
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 11, 2012
  • Latest release: Aug 25, 2014
  • Number of updates: 7
  • Update frequency: every 126.6 days
  • Top authors: lorenzocaum (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,899 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/shopp-wufoo/shopp-wufoo.php+48
    Accessing static property Shopp_Wufoo::$apiKey as non static

Server metrics [RAM: ▼1.81MB] [CPU: ▼50.36ms] Passed 4 tests

An overview of server-side resources used by Shopp + Wufoo
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.18 ▼1.286.61 ▼35.84
Dashboard /wp-admin2.20 ▼1.106.94 ▼42.47
Posts /wp-admin/edit.php2.20 ▼1.157.02 ▼39.53
Add New Post /wp-admin/post-new.php2.20 ▼3.696.94 ▼83.58
Media Library /wp-admin/upload.php2.20 ▼1.038.86 ▼23.76

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Shopp + Wufoo
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.22 ▼1.451.77 ▼0.1241.24 ▼2.95
Dashboard /wp-admin2,211 ▲205.90 ▲0.00101.76 ▼13.4441.55 ▼3.83
Posts /wp-admin/edit.php2,091 ▲202.06 ▲0.0339.79 ▲2.8736.45 ▲0.53
Add New Post /wp-admin/post-new.php1,531 ▼223.02 ▼0.13666.59 ▲7.1358.87 ▲7.40
Media Library /wp-admin/upload.php1,390 ▼14.16 ▼0.00100.06 ▼0.2644.17 ▲1.04

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/shopp-wufoo/shopp-wufoo.php+48
    Accessing static property Shopp_Wufoo::$apiKey as non static
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/shopp-wufoo/shopp-wufoo.php:39

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (The Shopp + Wufoo WordPress admin page.2. An additional view of the Shopp + Wufoo WordPress admin page.)
You can look at the official readme.txt

shopp-wufoo/shopp-wufoo.php Passed 13 tests

The main file in "Shopp + Wufoo" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
105 characters long description:
Customers who make a purchase from your WordPress ecommerce store are added to a specified form on Wufoo.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin767 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP4154175754
CSS13013

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity3.26
▷ Minimum class complexity1.00
▷ Maximum class complexity12.00
Average method complexity1.72
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes19
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes00.00%
Methods60
▷ Static methods11.67%
▷ Public methods5083.33%
▷ Protected methods46.67%
▷ Private methods610.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
2 PNG files occupy 0.54MB with 0.38MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png304.08KB92.30KB▼ 69.65%
screenshot-2.png247.65KB75.20KB▼ 69.63%