Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼10.12ms] Passed 4 tests
This is a short check of server-side resources used by Consumer Financing by ChargeAfter
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 38.05 ▼9.28 |
Dashboard /wp-admin | 3.31 ▼0.04 | 49.88 ▼14.56 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.72 ▲1.11 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 94.37 ▼14.78 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.01 ▼1.86 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Consumer Financing by ChargeAfter
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 14.72 ▲0.44 | 1.81 ▼0.44 | 36.06 ▼5.98 |
Dashboard /wp-admin | 2,195 ▲24 | 5.61 ▼0.06 | 100.74 ▲10.31 | 42.74 ▼2.87 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 2.01 ▲0.05 | 40.25 ▲1.85 | 37.92 ▲1.96 |
Add New Post /wp-admin/post-new.php | 1,526 ▼9 | 23.10 ▲4.92 | 643.34 ▲8.27 | 64.45 ▲4.25 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.16 ▼0.05 | 97.95 ▼8.48 | 43.13 ▼3.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/consumer-financing-by-chargeafter/uninstall.php+16
Invalid argument supplied for foreach()
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests Passed 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)
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
consumer-financing-by-chargeafter/chargeafter-extension.php 85% from 13 tests
This is the main PHP file of "Consumer Financing by ChargeAfter" version 1.4.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("consumer-financing-by-chargeafter.php" instead of "chargeafter-extension.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,497 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 315 | 756 | 1,383 |
JavaScript | 3 | 22 | 0 | 114 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 12.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 1 | 9.09% |
Methods | 102 | |
▷ Static methods | 54 | 52.94% |
▷ Public methods | 94 | 92.16% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 7.84% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 24 | |
▷ Global constants | 3 | 12.50% |
▷ Class constants | 21 | 87.50% |
▷ Public constants | 21 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected