84% freezy-stripe

Code Review | Freezy Stripe

WordPress plugin Freezy Stripe scored 84% from 54 tests.

About plugin

  • Plugin page: freezy-stripe
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5.1
  • WordPress version: 6.3.1
  • First release: Mar 1, 2016
  • Latest release: Apr 29, 2016
  • Number of updates: 5
  • Update frequency: every 11.8 days
  • Top authors: spokanetony (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 904 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.25MB] [CPU: ▼4.37ms] Passed 4 tests

This is a short check of server-side resources used by Freezy Stripe
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2237.09 ▼4.12
Dashboard /wp-admin3.61 ▲0.3150.22 ▲2.49
Posts /wp-admin/edit.php3.67 ▲0.3149.22 ▼1.64
Add New Post /wp-admin/post-new.php6.11 ▲0.2386.37 ▼14.19
Media Library /wp-admin/upload.php3.46 ▲0.2334.93 ▲3.31
Settings /wp-admin/admin.php?page=freezy_stripe3.5437.72
Freezy Stripe /wp-admin/options-general.php?page=freezy-stripe3.4534.36
Freezy Payments /wp-admin/edit.php?post_type=freezy_payment3.5339.29

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 61 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
freezy_stripe_version
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Freezy Stripe
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,121 ▲38615.90 ▲1.5210.50 ▲8.7643.40 ▲4.41
Dashboard /wp-admin2,391 ▲2036.66 ▲0.78136.57 ▲27.8439.28 ▼5.20
Posts /wp-admin/edit.php2,302 ▲2133.82 ▲1.8250.89 ▲10.6032.52 ▼4.98
Add New Post /wp-admin/post-new.php1,564 ▲3118.32 ▼4.85578.27 ▼81.2433.49 ▼21.26
Media Library /wp-admin/upload.php1,432 ▲414.34 ▼0.0085.29 ▼21.2741.70 ▼4.35
Settings /wp-admin/admin.php?page=freezy_stripe1,3133.3844.5426.47
Freezy Stripe /wp-admin/options-general.php?page=freezy-stripe1,3133.3948.9628.54
Freezy Payments /wp-admin/edit.php?post_type=freezy_payment1,2823.6650.1227.61

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • freezy_stripe_version
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

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
The following issues need your attention
  • 45× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'FreezyStripe\\Stripe\\ApiResource' not found in wp-content/plugins/freezy-stripe/classes/Stripe/lib/InvoiceItem.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'FreezyStripe\\Stripe\\ApiResource' not found in wp-content/plugins/freezy-stripe/classes/Stripe/lib/Coupon.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'FreezyStripe\\Stripe\\ApiResource' not found in wp-content/plugins/freezy-stripe/classes/Stripe/lib/ApplicationFeeRefund.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'FreezyStripe\\Stripe\\ApiResource' not found in wp-content/plugins/freezy-stripe/classes/Stripe/lib/Token.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'FreezyStripe\\Stripe\\ExternalAccount' not found in wp-content/plugins/freezy-stripe/classes/Stripe/lib/Card.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'FreezyStripe\\Stripe\\ApiResource' not found in wp-content/plugins/freezy-stripe/classes/Stripe/lib/TransferReversal.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'FreezyStripe\\Stripe\\ApiResource' not found in wp-content/plugins/freezy-stripe/classes/Stripe/lib/Collection.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'FreezyStripe\\Stripe\\ApiResource' not found in wp-content/plugins/freezy-stripe/classes/Stripe/lib/Account.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'FreezyStripe\\Stripe\\ApiResource' not found in wp-content/plugins/freezy-stripe/classes/Stripe/lib/FileUpload.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'FreezyStripe\\Stripe\\ApiResource' not found in wp-content/plugins/freezy-stripe/classes/Stripe/lib/ApplicationFee.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: stripe, stripe payment, payment, free

freezy-stripe/freezy-stripe.php Passed 13 tests

"Freezy Stripe" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
70 characters long description:
A free and easy (get it?) way to take Stripe payments on your website!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected2,771 lines of code in 60 files:
LanguageFilesBlank linesComment linesLines of code
PHP564679792,658
JavaScript223466
CSS26047

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity4.54
▷ Minimum class complexity1.00
▷ Maximum class complexity36.00
Average method complexity1.73
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces5
Interfaces3
Traits0
Classes49
▷ Abstract classes510.20%
▷ Concrete classes4489.80%
▷ Final classes00.00%
Methods233
▷ Static methods9139.06%
▷ Public methods21692.70%
▷ Protected methods83.43%
▷ Private methods93.86%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants9
▷ Global constants222.22%
▷ Class constants777.78%
▷ Public constants7100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected