Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲2.67MB] [CPU: ▲10.05ms] Passed 4 tests
An overview of server-side resources used by spfwct
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 6.14 ▲2.68 | 55.08 ▲16.39 |
Dashboard /wp-admin | 5.98 ▲2.67 | 60.30 ▲12.91 |
Posts /wp-admin/edit.php | 6.09 ▲2.73 | 60.45 ▲15.59 |
Add New Post /wp-admin/post-new.php | 8.56 ▲2.67 | 102.09 ▲5.35 |
Media Library /wp-admin/upload.php | 5.90 ▲2.67 | 45.69 ▲6.33 |
Server storage [IO: ▲2.31MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 413 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
spfwct: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.24 ▼1.14 | 2.21 ▲0.30 | 43.59 ▼1.28 |
Dashboard /wp-admin | 2,207 ▲19 | 5.84 ▼0.01 | 98.50 ▼12.20 | 47.50 ▲3.92 |
Posts /wp-admin/edit.php | 2,092 ▲6 | 2.03 ▲0.02 | 35.51 ▼1.23 | 42.88 ▲9.59 |
Add New Post /wp-admin/post-new.php | 1,537 ▲4 | 23.18 ▼0.02 | 750.23 ▲133.87 | 50.25 ▲2.61 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.29 ▲0.09 | 112.41 ▲11.52 | 55.32 ▲12.48 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 7× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/spf-wct/vendor/stripe-php-6.6.0/build.php
- > /wp-content/plugins/spf-wct/vendor/stripe-php-7.75.0/update_certs.php
- > /wp-content/plugins/spf-wct/vendor/stripe-php-6.6.0/tests/bootstrap.php
- > /wp-content/plugins/spf-wct/vendor/stripe-php-6.6.0/tests/bootstrap.no_autoload.php
- > /wp-content/plugins/spf-wct/vendor/stripe-php-6.6.0/update_certs.php
- > /wp-content/plugins/spf-wct/vendor/stripe-php-7.75.0/build.php
- > /wp-content/plugins/spf-wct/vendor/stripe-php-6.6.0/examples/oauth.php
- 306× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/spf-wct/vendor/stripe-php-6.6.0/lib/BitcoinReceiver.php:13
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Error\\Base' not found in wp-content/plugins/spf-wct/vendor/stripe-php-6.6.0/lib/Error/ApiConnection.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/spf-wct/vendor/stripe-php-7.75.0/lib/BalanceTransaction.php:32
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractServiceFactory' not found in wp-content/plugins/spf-wct/vendor/stripe-php-7.75.0/lib/Service/Reporting/ReportingServiceFactory.php:13
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractService' not found in wp-content/plugins/spf-wct/vendor/stripe-php-7.75.0/lib/Service/CountrySpecService.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Stripe\\Util\\LoggerInterface' not found in wp-content/plugins/spf-wct/vendor/stripe-php-6.6.0/lib/Util/DefaultLogger.php:9
- > PHP Fatal error
Uncaught Error: Interface 'SPF_WCT\\StirpeConfig' not found in wp-content/plugins/spf-wct/classes/ErrorBundle.class.php:4
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/spf-wct/vendor/stripe-php-7.75.0/lib/CreditNoteLineItem.php:23
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/spf-wct/vendor/stripe-php-7.75.0/build.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/spf-wct/vendor/stripe-php-6.6.0/lib/BalanceTransaction.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Requires php: Invalid version format
spf-wct/spfwct.php 85% from 13 tests
This is the main PHP file of "spfwct" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("spf-wct.php" instead of "spfwct.php")
- Description: The description should be shorter than 140 characters (currently 238 characters long)
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Please make sure to remedy the following
- You should never include executable (binary) or otherwise dangerous files in your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/spf-wct/vendor/stripe-php-7.75.0/data/ca-certificates.crt
- ☣ wp-content/plugins/spf-wct/vendor/stripe-php-6.6.0/data/ca-certificates.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 369 | 3,595 | 11,574 | 16,389 |
JavaScript | 4 | 1,183 | 1,490 | 9,553 |
Markdown | 6 | 882 | 0 | 1,511 |
CSS | 2 | 34 | 1 | 352 |
JSON | 2 | 0 | 0 | 84 |
XML | 3 | 0 | 0 | 61 |
YAML | 3 | 7 | 1 | 39 |
make | 1 | 9 | 0 | 27 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 3.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 140.00 |
Average method complexity | 1.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 25 | |
Interfaces | 9 | |
Traits | 14 | |
Classes | 334 | |
▷ Abstract classes | 17 | 5.09% |
▷ Concrete classes | 317 | 94.91% |
▷ Final classes | 0 | 0.00% |
Methods | 1,373 | |
▷ Static methods | 277 | 20.17% |
▷ Public methods | 1,256 | 91.48% |
▷ Protected methods | 49 | 3.57% |
▷ Private methods | 68 | 4.95% |
Functions | 17 | |
▷ Named functions | 3 | 17.65% |
▷ Anonymous functions | 14 | 82.35% |
Constants | 881 | |
▷ Global constants | 10 | 1.14% |
▷ Class constants | 871 | 98.86% |
▷ Public constants | 871 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 0.18MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icons/icon-visa.png | 1.17KB | 1.12KB | ▼ 4.09% |
screenshot-3.png | 42.12KB | 16.91KB | ▼ 59.86% |
screenshot-2.png | 51.34KB | 19.97KB | ▼ 61.10% |
images/icons/icon_mastercard.png | 1.94KB | 1.57KB | ▼ 19.01% |
images/icons/icon_american-express.png | 2.73KB | 2.14KB | ▼ 21.78% |