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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼5.24ms] Passed 4 tests
This is a short check of server-side resources used by OurPass One-Click Checkout
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 34.87 ▼4.67 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.10 ▲1.00 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 41.26 ▼7.87 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 84.58 ▼9.02 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.40 ▲0.62 |
Server storage [IO: ▲8.63MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 72 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
OurPass One-Click Checkout: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲51 | 14.45 ▲0.08 | 1.70 ▼0.24 | 39.26 ▼5.82 |
Dashboard /wp-admin | 2,214 ▲25 | 4.96 ▲0.04 | 111.91 ▼4.55 | 42.29 ▲0.05 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.01 ▼0.00 | 34.88 ▼5.94 | 33.11 ▼1.82 |
Add New Post /wp-admin/post-new.php | 1,553 ▲20 | 23.53 ▲0.32 | 629.24 ▼47.76 | 48.58 ▼8.84 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.30 ▲0.05 | 93.78 ▼20.33 | 41.47 ▼6.94 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
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
Good news, no errors were detected
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
The following issues need your attention
- 38× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
require_once(OURPASSWC_PATHincludes/routes/class-route.php): failed to open stream: No such file or directory in wp-content/plugins/ourpass-payment-gateway/includes/routes.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'OurPass_Form_Field' not found in wp-content/plugins/ourpass-payment-gateway/includes/admin/fields/class-textarea.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ourpass-payment-gateway/templates/admin/ourpass-settings-footer.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ourpass-payment-gateway/includes/admin/notices.php:23
- > PHP Fatal error
Uncaught Error: Call to undefined function ourpasswc_load_template() in wp-content/plugins/ourpass-payment-gateway/templates/admin/tabs/ourpass-options.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function ourpasswc_load_template() in wp-content/plugins/ourpass-payment-gateway/templates/admin/tabs/ourpass-app-info.php:8
- > PHP Warning
Use of undefined constant OURPASSWC_ONBOARDING_URL - assumed 'OURPASSWC_ONBOARDING_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/ourpass-payment-gateway/templates/admin/ourpass-settings-footer.php on line 9
- > PHP Fatal error
require_once(): Failed opening required 'OURPASSWC_PATHincludes/routes/class-route.php' (include_path='.:/usr/share/php') in wp-content/plugins/ourpass-payment-gateway/includes/routes.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function ourpasswc_load_template() in wp-content/plugins/ourpass-payment-gateway/templates/ourpass-mini-cart.php:11
- > PHP Warning
require_once(OURPASSWC_PATHincludes/admin/fields/class-field.php): failed to open stream: No such file or directory in wp-content/plugins/ourpass-payment-gateway/includes/admin/fields.php on line 4
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: You are using too many tags: 14 tag instead of maximum 10
- Screenshots: These screenshots do not have images: #1 ([Settings](assets/screenshot-1 "OurPass Section")), #2 ([Cart](assets/screenshot-2 "Product")), #7 ([OurPass Payment](assets/screenshot-7 "Checkout Successful"))
ourpass-payment-gateway/woo-ourpass.php 92% from 13 tests
The main file in "OurPass One-Click Checkout" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("ourpass-payment-gateway.php" instead of "woo-ourpass.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin2,105 lines of code in 48 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 38 | 504 | 1,026 | 2,078 |
SVG | 2 | 0 | 0 | 18 |
JavaScript | 4 | 0 | 1 | 4 |
CSS | 3 | 0 | 0 | 3 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 2 | 18.18% |
▷ Concrete classes | 9 | 81.82% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 17.14% |
▷ Protected methods | 29 | 82.86% |
▷ Private methods | 0 | 0.00% |
Functions | 99 | |
▷ Named functions | 98 | 98.99% |
▷ Anonymous functions | 1 | 1.01% |
Constants | 39 | |
▷ Global constants | 39 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 8.06MB with 5.52MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.png | 1,746.58KB | 682.01KB | ▼ 60.95% |
assets/screenshot-5.png | 1,047.35KB | 272.63KB | ▼ 73.97% |
assets/screenshot-7.png | 1,005.50KB | 259.72KB | ▼ 74.17% |
assets/screenshot-4.png | 1,568.26KB | 652.76KB | ▼ 58.38% |
assets/screenshot-1.png | 341.32KB | 85.70KB | ▼ 74.89% |