Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method chargify::activate() should not be called statically
Server metrics [RAM: ▼0.98MB] [CPU: ▼46.09ms] Passed 4 tests
Server-side resources used by WP-Chargify
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.00 ▼0.46 | 15.47 ▼28.53 |
Dashboard /wp-admin | 3.04 ▼0.27 | 16.85 ▼38.26 |
Posts /wp-admin/edit.php | 3.04 ▼0.32 | 21.11 ▼34.35 |
Add New Post /wp-admin/post-new.php | 3.04 ▼2.85 | 20.32 ▼83.21 |
Media Library /wp-admin/upload.php | 3.04 ▼0.19 | 19.48 ▼18.25 |
Server storage [IO: ▲0.93MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
chargify |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for WP-Chargify
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲43 | 14.69 ▲0.16 | 1.60 ▼0.24 | 42.48 ▼1.25 |
Dashboard /wp-admin | 2,198 ▲18 | 5.51 ▼0.35 | 89.90 ▼3.58 | 67.48 ▲28.55 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 2.00 ▼0.02 | 36.34 ▼1.08 | 39.28 ▲0.62 |
Add New Post /wp-admin/post-new.php | 6,273 ▲4,745 | 26.16 ▲3.12 | 984.95 ▲296.39 | 66.38 ▲11.40 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.28 ▲0.16 | 103.28 ▼11.50 | 67.92 ▲20.61 |
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
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method chargify::subscriptionRedirect() should not be called statically
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'ChargifyConnector' not found in wp-content/plugins/chargify/lib/ChargifySubscription.php:5
- > PHP Fatal error
Uncaught Error: Class 'ChargifyConnector' not found in wp-content/plugins/chargify/lib/ChargifyCustomer.php:5
- > PHP Fatal error
Uncaught Error: Class 'ChargifyConnector' not found in wp-content/plugins/chargify/lib/ChargifyProduct.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/chargify/chargify.php:19
- > PHP Fatal error
Uncaught Error: Class 'ChargifyConnector' not found in wp-content/plugins/chargify/lib/ChargifyCreditCard.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: membership, chargify, registration, tools, subscription
chargify/chargify.php Passed 13 tests
The main PHP file in "WP-Chargify" ver. 2.1 adds more information about the plugin and also serves as the entry point for this plugin
56 characters long description:
Manage subscriptions to WordPress using the Chargify API
Code Analysis Passed 3 tests
File types Passed 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
Good job! No executable or dangerous file extensions detected1,402 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 227 | 104 | 1,373 |
JavaScript | 1 | 10 | 4 | 29 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 36.33 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 189.00 |
Average method complexity | 3.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 93 | |
▷ Static methods | 1 | 1.08% |
▷ Public methods | 91 | 97.85% |
▷ Protected methods | 2 | 2.15% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/chargify.png | 2.08KB | 0.47KB | ▼ 77.22% |