Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.67MB] [CPU: ▲8.61ms] 75% from 4 tests
A check of server-side resources used by ICDSoft Reseller Store
The following require your attention
- CPU: Total CPU usage should be kept under 500.00ms (currently 710.17ms on /wp-admin/admin.php?page=icd-hosting-settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.00 ▲1.54 | 53.48 ▲15.22 |
Dashboard /wp-admin | 5.00 ▲1.70 | 61.65 ▲13.63 |
Posts /wp-admin/edit.php | 5.08 ▲1.73 | 65.97 ▲16.96 |
Add New Post /wp-admin/post-new.php | 7.69 ▲1.80 | 86.10 ▼10.18 |
Media Library /wp-admin/upload.php | 4.94 ▲1.71 | 51.10 ▲15.75 |
ICDSoft Hosting /wp-admin/admin.php?page=icd_hosting | 4.68 | 43.75 |
Settings /wp-admin/admin.php?page=icd-hosting-welcome | 4.86 | 46.21 |
Settings /wp-admin/admin.php?page=icd-hosting-settings | 4.86 | 710.17 |
Server storage [IO: ▲2.84MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 609 new files
Database: no new tables, 17 new options
New WordPress options |
---|
icd_hosting_version |
widget_recent-comments |
icd_hosting_request_page_id |
icd_hosting |
icd_hosting_terms_page_id |
icd_hosting_excluded_pages_ids |
icd_hosting_payment_page_id |
icd_hosting_hostingorder_page_id |
icd_hosting_domaincheck_page_id |
db_upgraded |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for ICDSoft Reseller Store
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲174 | 13.93 ▼0.42 | 10.55 ▲9.05 | 43.57 ▲3.42 |
Dashboard /wp-admin | 2,201 ▲23 | 5.56 ▼0.15 | 82.24 ▼35.93 | 74.45 ▲32.58 |
Posts /wp-admin/edit.php | 2,124 ▲27 | 2.00 ▼0.02 | 34.87 ▼2.84 | 32.13 ▼6.30 |
Add New Post /wp-admin/post-new.php | 1,434 ▼103 | 17.39 ▼0.90 | 674.07 ▲32.51 | 62.52 ▼9.88 |
Media Library /wp-admin/upload.php | 1,418 ▲21 | 4.19 ▲0.01 | 96.26 ▼6.85 | 66.22 ▲21.97 |
ICDSoft Hosting /wp-admin/admin.php?page=icd_hosting | 28 | 0.42 | 0.06 | 3.72 |
Settings /wp-admin/admin.php?page=icd-hosting-welcome | 832 | 2.29 | 25.76 | 25.31 |
Settings /wp-admin/admin.php?page=icd-hosting-settings | 953 | 2.16 | 26.36 | 35.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
Please take a closer look at the following
- 8× PHP files output text when accessed directly:
- > /wp-content/plugins/icdsoft-reseller-store/includes/libraries/stripe/stripe-php/tests/bootstrap.php
- > /wp-content/plugins/icdsoft-reseller-store/includes/libraries/stripe/stripe-php/build.php
- > /wp-content/plugins/icdsoft-reseller-store/includes/libraries/stripe/stripe-php/examples/oauth.php
- > /wp-content/plugins/icdsoft-reseller-store/templates/payment-details-braintree.php
- > /wp-content/plugins/icdsoft-reseller-store/includes/libraries/stripe/stripe-php/update_certs.php
- > /wp-content/plugins/icdsoft-reseller-store/templates/extra-attributes.php
- > /wp-content/plugins/icdsoft-reseller-store/includes/libraries/stripe/stripe-php/tests/bootstrap.no_autoload.php
- > /wp-content/plugins/icdsoft-reseller-store/templates/compare_plans.php
- 434× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/icdsoft-reseller-store/includes/libraries/stripe/stripe-php/tests/Stripe/AccountTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Error\\Base' not found in wp-content/plugins/icdsoft-reseller-store/includes/libraries/stripe/stripe-php/lib/Error/Authentication.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\Service\\AbstractServiceFactory' not found in wp-content/plugins/icdsoft-reseller-store/includes/libraries/stripe/stripe-php/lib/Service/Reporting/ReportingServiceFactory.php:13
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/icdsoft-reseller-store/includes/libraries/stripe/stripe-php/tests/Stripe/DisputeTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\TestCase' not found in wp-content/plugins/icdsoft-reseller-store/includes/libraries/stripe/stripe-php/tests/Stripe/ApplePayDomainTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/icdsoft-reseller-store/includes/libraries/stripe/stripe-php/lib/File.php:30
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/icdsoft-reseller-store/includes/libraries/stripe/stripe-php/lib/PaymentIntent.php:58
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\BaseStripeClient' not found in wp-content/plugins/icdsoft-reseller-store/includes/libraries/stripe/stripe-php/lib/StripeClient.php:62
- > PHP Fatal error
Uncaught Error: Class 'Braintree\\Base' not found in wp-content/plugins/icdsoft-reseller-store/includes/libraries/lib/Braintree/PartnerMerchant.php:18
- > PHP Fatal error
Uncaught Error: Class 'Stripe\\ApiResource' not found in wp-content/plugins/icdsoft-reseller-store/includes/libraries/stripe/stripe-php/lib/ApplicationFee.php:23
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=icd_hosting
- > Network (severe)
wp-admin/admin.php?page=icd_hosting - Failed to load resource: the server responded with a status of 500 (Internal Server Error)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: web hosting, store, shortcode, products, ecommerce...
icdsoft-reseller-store/icd-hosting.php 77% from 13 tests
"ICDSoft Reseller Store" version 2.3.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 195 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("icdsoft-reseller-store.php" instead of "icd-hosting.php")
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
It is important to fix the following items
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
- ☣ wp-content/plugins/icdsoft-reseller-store/includes/libraries/lib/ssl/api_braintreegateway_com.ca.crt
- ☣ wp-content/plugins/icdsoft-reseller-store/includes/libraries/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 | 562 | 6,131 | 17,901 | 33,858 |
CSS | 4 | 1,851 | 21 | 8,368 |
JavaScript | 2 | 253 | 53 | 1,857 |
Markdown | 6 | 671 | 0 | 1,033 |
SVG | 2 | 0 | 0 | 338 |
XML | 3 | 0 | 0 | 61 |
JSON | 1 | 0 | 0 | 48 |
YAML | 3 | 7 | 1 | 39 |
make | 1 | 9 | 0 | 27 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 4.72 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 97.00 |
Average method complexity | 1.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 38 | |
Interfaces | 6 | |
Traits | 7 | |
Classes | 513 | |
▷ Abstract classes | 13 | 2.53% |
▷ Concrete classes | 500 | 97.47% |
▷ Final classes | 1 | 0.20% |
Methods | 2,496 | |
▷ Static methods | 689 | 27.60% |
▷ Public methods | 2,147 | 86.02% |
▷ Protected methods | 174 | 6.97% |
▷ Private methods | 175 | 7.01% |
Functions | 57 | |
▷ Named functions | 40 | 70.18% |
▷ Anonymous functions | 17 | 29.82% |
Constants | 1,588 | |
▷ Global constants | 11 | 0.69% |
▷ Class constants | 1,577 | 99.31% |
▷ Public constants | 1,577 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
8 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/geotrust.png | 1.88KB | 2.37KB | 0.00% |
includes/libraries/stripe/stripe-php/tests/data/test.png | 0.09KB | 0.09KB | 0.00% |
assets/img/iadvantage.png | 0.46KB | 0.46KB | 0.00% |
assets/img/favicon.png | 0.16KB | 0.16KB | 0.00% |
assets/img/centurylink.png | 0.48KB | 0.40KB | ▼ 16.39% |