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.10MB] [CPU: ▼26.51ms] Passed 4 tests
A check of server-side resources used by Stripe CSV Exports
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.29 ▲0.82 | 42.80 ▲2.69 |
Dashboard /wp-admin | 3.84 ▲0.54 | 29.47 ▼17.74 |
Posts /wp-admin/edit.php | 3.84 ▲0.48 | 27.80 ▼17.01 |
Add New Post /wp-admin/post-new.php | 3.84 ▼2.05 | 25.95 ▼66.29 |
Media Library /wp-admin/upload.php | 3.84 ▲0.61 | 28.77 ▼4.99 |
Stripe CSV Exports /wp-admin/options-general.php?page= | 3.84 | 28.25 |
Server storage [IO: ▲1.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 271 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Stripe CSV Exports
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.23 ▼0.30 | 1.72 ▲0.30 | 42.83 ▲6.16 |
Dashboard /wp-admin | 2,202 ▲25 | 5.61 ▼0.07 | 83.04 ▼11.76 | 36.75 ▼0.21 |
Posts /wp-admin/edit.php | 2,101 ▲4 | 2.01 ▼0.12 | 35.69 ▼0.52 | 34.40 ▼0.66 |
Add New Post /wp-admin/post-new.php | 1,537 ▲1 | 18.07 ▼7.05 | 620.01 ▼9.85 | 105.65 ▲3.91 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.19 ▼0.02 | 95.92 ▼8.46 | 42.80 ▼4.60 |
Stripe CSV Exports /wp-admin/options-general.php?page= | 779 | 2.00 | 26.19 | 23.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/export-stripe-csv/stripe_csv_exports.php+194
Undefined variable: menu_slug
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=
- > Notice in wp-content/plugins/export-stripe-csv/stripe_csv_exports.php+194
Undefined variable: menu_slug
- > GET request to /wp-admin/options-general.php?page=
- > Notice in wp-content/plugins/export-stripe-csv/stripe_csv_exports.php+253
Undefined property: stripe_csv_exports::$updated
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/export-stripe-csv/vendor/stripe/stripe-php/build.php
- > /wp-content/plugins/export-stripe-csv/vendor/apache/log4php/package.php
- 169× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined offset: 1 in wp-content/plugins/export-stripe-csv/vendor/apache/log4php/package-config.php on line 24
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/export-stripe-csv/vendor/stripe/stripe-php/lib/SubscriptionItem.php:10
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Error\\Base' not found in wp-content/plugins/export-stripe-csv/vendor/stripe/stripe-php/lib/Error/Api.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/export-stripe-csv/vendor/stripe/stripe-php/tests/PermissionsErrorTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'LoggerPatternConverter' not found in wp-content/plugins/export-stripe-csv/vendor/apache/log4php/src/main/php/pattern/LoggerPatternConverterLogger.php:32
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/export-stripe-csv/vendor/stripe/stripe-php/tests/DiscountTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/export-stripe-csv/vendor/stripe/stripe-php/tests/ApplicationFeeRefundTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/export-stripe-csv/vendor/stripe/stripe-php/lib/Product.php:10
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/export-stripe-csv/vendor/stripe/stripe-php/lib/TransferReversal.php:19
- > PHP Fatal error
Uncaught Error: Interface 'LoggerConfigurationAdapter' not found in wp-content/plugins/export-stripe-csv/vendor/apache/log4php/src/main/php/configurators/LoggerConfigurationAdapterXML.php:30
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: export, stripe, csv, custom
export-stripe-csv/stripe_csv_exports.php 92% from 13 tests
The main PHP script in "Stripe CSV Exports" version 1.2.2 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("export-stripe-csv.php" instead of "stripe_csv_exports.php")
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
These items require your attention
- For security reasons, never distribute binary or executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/export-stripe-csv/vendor/stripe/stripe-php/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 235 | 3,239 | 10,308 | 13,657 |
Markdown | 4 | 613 | 0 | 930 |
Maven | 1 | 30 | 21 | 305 |
JSON | 5 | 0 | 0 | 291 |
Ant | 1 | 19 | 30 | 140 |
XML | 6 | 15 | 58 | 126 |
DTD | 1 | 25 | 54 | 69 |
YAML | 2 | 2 | 0 | 40 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 6.32 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 213.00 |
Average method complexity | 1.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 8 | |
Traits | 5 | |
Classes | 209 | |
▷ Abstract classes | 14 | 6.70% |
▷ Concrete classes | 195 | 93.30% |
▷ Final classes | 0 | 0.00% |
Methods | 1,264 | |
▷ Static methods | 242 | 19.15% |
▷ Public methods | 1,084 | 85.76% |
▷ Protected methods | 105 | 8.31% |
▷ Private methods | 75 | 5.93% |
Functions | 41 | |
▷ Named functions | 9 | 21.95% |
▷ Anonymous functions | 32 | 78.05% |
Constants | 71 | |
▷ Global constants | 3 | 4.23% |
▷ Class constants | 68 | 95.77% |
▷ Public constants | 68 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/stripe/stripe-php/data/test.png | 0.09KB | 0.09KB | 0.00% |