94% simple-stripe-elementor

Code Review | Simple Stripe Elementor

WordPress plugin Simple Stripe Elementor scored 94% from 54 tests.

About plugin

  • Plugin page: simple-stripe-ele...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.4
  • WordPress version: 5.9.2
  • First release: Jul 2, 2020
  • Latest release: Sep 2, 2020
  • Number of updates: 20
  • Update frequency: every 3.1 days
  • Top authors: concamilo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 444 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.02MB] [CPU: ▼297.18ms] Passed 4 tests

A check of server-side resources used by Simple Stripe Elementor
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0155.95 ▲8.67
Dashboard /wp-admin3.41 ▲0.0132.95 ▼0.97
Posts /wp-admin/edit.php3.65 ▲0.0140.31 ▲4.93
Add New Post /wp-admin/post-new.php6.88 ▼0.0993.52 ▼1,192.52
Media Library /wp-admin/upload.php3.30 ▲0.0024.14 ▼0.16

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Stripe Elementor
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,867 ▲12318.95 ▲2.95214.18 ▲207.797.02 ▲4.53
Dashboard /wp-admin2,916 ▲626.07 ▼0.13116.13 ▼19.10155.60 ▼2.61
Posts /wp-admin/edit.php2,710 ▲223.24 ▲0.0163.33 ▼0.80141.82 ▼3.65
Add New Post /wp-admin/post-new.php1,724 ▲1321.47 ▲0.05419.77 ▼16.62161.96 ▲2.18
Media Library /wp-admin/upload.php1,722 ▲245.54 ▲0.07143.67 ▲1.50184.48 ▲2.01

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/simple-stripe-elementor/widgets/stripe.php:8

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: elementor, stripe, pagos

simple-stripe-elementor/stripe.php 85% from 13 tests

The entry point to "Simple Stripe Elementor" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("simple-stripe-elementor.php" instead of "stripe.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin239 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2114210239

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity9.00
▷ Minimum class complexity8.00
▷ Maximum class complexity10.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods14
▷ Static methods17.14%
▷ Public methods1285.71%
▷ Protected methods214.29%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin