Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲1.35MB] [CPU: ▲7.81ms] Passed 4 tests
Server-side resources used by CHIP for Paymattic
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.83 ▲1.37 | 51.69 ▲5.76 |
Dashboard /wp-admin | 4.69 ▲1.38 | 64.57 ▲11.57 |
Posts /wp-admin/edit.php | 4.74 ▲1.38 | 59.50 ▲4.08 |
Add New Post /wp-admin/post-new.php | 7.20 ▲1.32 | 101.11 ▲9.82 |
Media Library /wp-admin/upload.php | 4.55 ▲1.32 | 50.94 ▲17.34 |
Server storage [IO: ▲1.61MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 149 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
CHIP for Paymattic: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.03 ▼0.13 | 1.75 ▼0.12 | 38.65 ▼8.00 |
Dashboard /wp-admin | 2,198 ▲24 | 5.63 ▲0.01 | 90.56 ▼2.94 | 37.80 ▼3.14 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.99 ▼0.02 | 33.62 ▼10.24 | 33.24 ▼8.61 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.60 ▲0.37 | 660.99 ▼42.78 | 58.12 ▲2.55 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.16 ▲0.08 | 100.76 ▼1.76 | 43.25 ▼2.23 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Please take a closer look at the following
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant PYMTC_CHIP_FSLUG - assumed 'PYMTC_CHIP_FSLUG' (this will throw an Error in a future version of PHP) in wp-content/plugins/chip-for-paymattic/includes/admin/form-settings.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/chip-for-paymattic/includes/class-inject-chip-logo.php:16
- > PHP Fatal error
Uncaught Error: Class 'CSF_Setup' not found in wp-content/plugins/chip-for-paymattic/includes/admin/backup-settings.php:5
- > PHP Fatal error
Uncaught Error: Class 'WPPayForm\\App\\Services\\GeneralSettings' not found in wp-content/plugins/chip-for-paymattic/includes/admin/global-settings.php:7
- > PHP Warning
Use of undefined constant PYMTC_CHIP_FSLUG - assumed 'PYMTC_CHIP_FSLUG' (this will throw an Error in a future version of PHP) in wp-content/plugins/chip-for-paymattic/includes/admin/global-settings.php on line 5
- > PHP Warning
Use of undefined constant PYMTC_CHIP_FSLUG - assumed 'PYMTC_CHIP_FSLUG' (this will throw an Error in a future version of PHP) in wp-content/plugins/chip-for-paymattic/includes/admin/backup-settings.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'CSF_Setup' not found in wp-content/plugins/chip-for-paymattic/includes/admin/form-settings.php:97
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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 your attention:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6, #7 in chip-for-paymattic/assets to your readme.txt
chip-for-paymattic/chip-for-paymattic.php Passed 13 tests
"CHIP for Paymattic" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
42 characters long description:
CHIP - Better Payment & Business Solutions
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
There were no executable files found in this plugin31,601 lines of code in 125 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 75 | 2,577 | 942 | 7,950 |
JavaScript | 5 | 1,300 | 497 | 6,564 |
PO File | 20 | 3,198 | 3,591 | 6,500 |
Sass | 16 | 970 | 3 | 5,674 |
CSS | 4 | 376 | 509 | 4,872 |
SVG | 4 | 0 | 0 | 27 |
Markdown | 1 | 8 | 0 | 14 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 24.56 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 151.00 |
Average method complexity | 6.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 66 | |
▷ Abstract classes | 2 | 3.03% |
▷ Concrete classes | 64 | 96.97% |
▷ Final classes | 0 | 0.00% |
Methods | 286 | |
▷ Static methods | 44 | 15.38% |
▷ Public methods | 272 | 95.10% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 14 | 4.90% |
Functions | 25 | |
▷ Named functions | 24 | 96.00% |
▷ Anonymous functions | 1 | 4.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/codestar-framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |