Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- This plugin did not install gracefully
- > Warning in wp-content/plugins/cyklodev-wp-paypal-integration/index.php+18
Use of undefined constant ckd_esc - assumed 'ckd_esc' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.87MB] [CPU: ▼194.17ms] Passed 4 tests
An overview of server-side resources used by Cyklodev WP Paypal Integration
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.77 ▼1.07 | 5.25 ▼29.69 |
Dashboard /wp-admin | 1.78 ▼1.27 | 4.65 ▼51.89 |
Posts /wp-admin/edit.php | 1.78 ▼1.32 | 6.10 ▼36.81 |
Add New Post /wp-admin/post-new.php | 1.78 ▼3.65 | 5.14 ▼658.27 |
Media Library /wp-admin/upload.php | 1.78 ▼1.22 | 5.81 ▼29.62 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_cyklodev_paypal |
Browser metrics Passed 4 tests
Cyklodev WP Paypal Integration: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,737 ▲131 | 15.88 ▲0.36 | 7.15 ▼2.94 | 53.41 ▲5.08 |
Dashboard /wp-admin | 3,004 ▲70 | 5.85 ▼0.19 | 147.15 ▼26.89 | 113.94 ▼5.29 |
Posts /wp-admin/edit.php | 2,773 ▲34 | 2.82 ▲0.01 | 66.17 ▼1.63 | 93.03 ▼2.61 |
Add New Post /wp-admin/post-new.php | 1,705 ▲22 | 18.78 ▲0.05 | 389.16 ▼4.72 | 115.28 ▲2.04 |
Media Library /wp-admin/upload.php | 1,841 ▲34 | 5.01 ▼0.01 | 177.41 ▲9.15 | 135.13 ▲6.58 |
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
- > Warning in wp-content/plugins/cyklodev-wp-paypal-integration/index.php+18
Use of undefined constant ckd_esc - assumed 'ckd_esc' (this will throw an Error in a future version of PHP)
- Zombie WordPress options detected upon uninstall: 1 option
- widget_cyklodev_paypal
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/cyklodev-wp-paypal-integration/index.php
- > /wp-content/plugins/cyklodev-wp-paypal-integration/views/widget-paypal.php
- > /wp-content/plugins/cyklodev-wp-paypal-integration/views/paypal.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: shortcode, widget, paypal, plugin
cyklodev-wp-paypal-integration/index.php 92% from 13 tests
The main PHP script in "Cyklodev WP Paypal Integration" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cyklodev-wp-paypal-integration.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin172 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 50 | 35 | 172 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/cyklodev.png | 12.79KB | 6.17KB | ▼ 51.73% |