Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼4.34ms] Passed 4 tests
Server-side resources used by Elvez WC Stripe Card Icon
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 40.46 ▼2.15 |
Dashboard /wp-admin | 3.36 ▲0.05 | 47.46 ▼7.79 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 49.17 ▼3.31 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 98.19 ▼4.11 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 41.30 ▲6.43 |
WC Stripe Card Icon /wp-admin/admin.php?page=elvez-wc-stripe-card-icon | 3.24 | 33.11 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 9 new options
New WordPress options |
---|
db_upgraded |
elvez_wc_stripe_card_icon_display_icons |
elvez_wc_stripe_card_icon_subscribe_email |
widget_theysaidso_widget |
can_compress_scripts |
elvez_wc_stripe_card_icon_subscription_id |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Elvez WC Stripe Card Icon
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,866 ▲109 | 14.47 ▲0.07 | 1.88 ▼0.18 | 44.85 ▼6.63 |
Dashboard /wp-admin | 2,248 ▲60 | 5.24 ▲0.31 | 110.47 ▲2.36 | 38.54 ▼3.66 |
Posts /wp-admin/edit.php | 2,133 ▲44 | 2.38 ▲0.37 | 39.51 ▼1.99 | 32.69 ▼3.58 |
Add New Post /wp-admin/post-new.php | 1,551 ▲37 | 23.36 ▲5.93 | 687.86 ▲9.25 | 35.79 ▼16.11 |
Media Library /wp-admin/upload.php | 1,421 ▲33 | 4.50 ▲0.34 | 97.85 ▼8.20 | 41.19 ▼2.85 |
WC Stripe Card Icon /wp-admin/admin.php?page=elvez-wc-stripe-card-icon | 1,038 | 2.53 | 43.86 | 27.62 |
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
You still need to fix the following
- This plugin did not uninstall successfully, leaving 9 options in the database
- elvez_wc_stripe_card_icon_subscribe_email
- theysaidso_admin_options
- elvez_wc_stripe_card_icon_display_icons
- can_compress_scripts
- elvez_wc_stripe_card_icon_subscription_id
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/elvez-wc-stripe-card-icon/public/partials/elvez-wc-stripe-card-icon-public-display.php
- > /wp-content/plugins/elvez-wc-stripe-card-icon/admin/partials/elvez-wc-stripe-card-icon-admin-display.php
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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: plugin
elvez-wc-stripe-card-icon/elvez-wc-stripe-card-icon.php 85% from 13 tests
This is the main PHP file of "Elvez WC Stripe Card Icon" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Requires PHP: The required version number did not match the one declared in readme.txt ("7.4" instead of "7.2")
- Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "5.2")
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
Everything looks great! No dangerous files found in this plugin1,481 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 245 | 1,093 | 956 |
CSS | 2 | 30 | 38 | 210 |
JavaScript | 4 | 11 | 67 | 210 |
PO File | 2 | 30 | 33 | 105 |
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 code | 0.18 |
Average class complexity | 7.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 1.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 78 | |
▷ Static methods | 20 | 25.64% |
▷ Public methods | 73 | 93.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 6.41% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 31 | |
▷ Global constants | 1 | 3.23% |
▷ Class constants | 30 | 96.77% |
▷ Public constants | 30 | 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
No PNG files were detected