Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼9.97ms] Passed 4 tests
Server-side resources used by WP Chargebee
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 36.37 ▼6.98 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.62 ▼5.23 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.10 ▼4.33 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.70 ▼23.31 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.19 ▼4.37 |
Settings /wp-admin/admin.php?page=wpcb-settings | 3.00 | 23.45 |
WPCB /wp-admin/admin.php?page=wpcb | 3.00 | 22.48 |
Server storage [IO: ▲0.73MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 169 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WP Chargebee
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.18 ▼1.57 | 1.70 ▼0.20 | 40.22 ▼5.48 |
Dashboard /wp-admin | 2,206 ▲18 | 4.87 ▼1.10 | 106.83 ▲2.80 | 38.73 ▼4.85 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▼0.00 | 39.65 ▲2.92 | 34.71 ▲0.46 |
Add New Post /wp-admin/post-new.php | 1,533 ▼11 | 23.24 ▲5.03 | 655.30 ▼10.33 | 50.38 ▼13.40 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.23 ▲0.06 | 97.87 ▼10.67 | 39.98 ▼7.42 |
Settings /wp-admin/admin.php?page=wpcb-settings | 28 | 0.44 | 0.10 | 3.68 |
WPCB /wp-admin/admin.php?page=wpcb | 28 | 0.44 | 0.09 | 5.26 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 141× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ChargeBee_Model' not found in wp-content/plugins/wpchargebee/vendor/chargebee/chargebee-php/lib/ChargeBee/Models/PlanEventBasedAddon.php:3
- > PHP Fatal error
Uncaught Error: Class 'ChargeBee_Model' not found in wp-content/plugins/wpchargebee/vendor/chargebee/chargebee-php/lib/ChargeBee/Models/SubscriptionCoupon.php:3
- > PHP Fatal error
Uncaught Error: Class 'ChargeBee_Model' not found in wp-content/plugins/wpchargebee/vendor/chargebee/chargebee-php/lib/ChargeBee/Models/ExportDownload.php:3
- > PHP Fatal error
Uncaught Error: Class 'ChargeBee_Model' not found in wp-content/plugins/wpchargebee/vendor/chargebee/chargebee-php/lib/ChargeBee/Models/CreditNoteDiscount.php:3
- > PHP Fatal error
Uncaught Error: Class 'ChargeBee_Model' not found in wp-content/plugins/wpchargebee/vendor/chargebee/chargebee-php/lib/ChargeBee/Models/InvoiceLineItem.php:3
- > PHP Fatal error
Uncaught Error: Class 'ChargeBee_Model' not found in wp-content/plugins/wpchargebee/vendor/chargebee/chargebee-php/lib/ChargeBee/Models/CouponSet.php:3
- > PHP Fatal error
Uncaught Error: Class 'ChargeBee_Model' not found in wp-content/plugins/wpchargebee/vendor/chargebee/chargebee-php/lib/ChargeBee/Models/CreditNoteLineItem.php:3
- > PHP Fatal error
Uncaught Error: Class 'ChargeBee_Model' not found in wp-content/plugins/wpchargebee/vendor/chargebee/chargebee-php/lib/ChargeBee/Models/CustomerBalance.php:3
- > PHP Fatal error
Uncaught Error: Class 'ChargeBee_Model' not found in wp-content/plugins/wpchargebee/vendor/chargebee/chargebee-php/lib/ChargeBee/Models/InvoiceDiscount.php:3
- > PHP Fatal error
Uncaught Error: Class 'ChargeBee_Model' not found in wp-content/plugins/wpchargebee/vendor/chargebee/chargebee-php/lib/ChargeBee/Models/SubscriptionEstimate.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=wpcb-settings
- > Network (severe)
wp-admin/admin.php?page=wpcb-settings - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=wpcb
- > Network (severe)
wp-admin/admin.php?page=wpcb - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Donate link: Invalid URI found ("")
- Screenshots: Please add images for these screenshots: #1 (WPCB_plans.jpg), #2 (WPCB_plans_edge cases.jpg)
wpchargebee/wp-chargebee.php 92% from 13 tests
Analyzing the main PHP file in "WP Chargebee" version 1.1
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("wpchargebee.php" instead of "wp-chargebee.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
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/wpchargebee/vendor/chargebee/chargebee-php/lib/ssl/ca-certs.crt
- .crt - Security Certificate in Firefox, IE, Chrome, Safari
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 152 | 1,118 | 304 | 4,100 |
Markdown | 2 | 526 | 0 | 1,029 |
JavaScript | 3 | 19 | 1 | 158 |
CSS | 2 | 13 | 9 | 95 |
JSON | 4 | 0 | 0 | 78 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 2.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 1.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 139 | |
▷ Abstract classes | 1 | 0.72% |
▷ Concrete classes | 138 | 99.28% |
▷ Final classes | 1 | 0.72% |
Methods | 391 | |
▷ Static methods | 268 | 68.54% |
▷ Public methods | 385 | 98.47% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 1.53% |
Functions | 14 | |
▷ Named functions | 11 | 78.57% |
▷ Anonymous functions | 3 | 21.43% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 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
There were not PNG files found in your plugin