Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.41ms] Passed 4 tests
Analyzing server-side resources used by Store credit / Gift cards for woocommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.15 ▼0.92 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.24 ▼3.83 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.69 ▼3.70 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 95.18 ▲2.81 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.97 ▲7.81 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 55 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Store credit / Gift cards for woocommerce
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲34 | 14.70 ▲0.49 | 1.91 ▲0.01 | 38.06 ▼7.64 |
Dashboard /wp-admin | 2,198 ▲24 | 5.61 ▲0.08 | 88.32 ▼11.99 | 41.23 ▼4.65 |
Posts /wp-admin/edit.php | 2,110 ▲7 | 1.97 ▼0.04 | 40.82 ▲2.81 | 34.81 ▼4.16 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.13 ▼0.16 | 592.15 ▼81.61 | 60.13 ▲2.75 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.27 ▲0.18 | 98.15 ▼6.77 | 43.52 ▼2.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/store-credit-for-woocommerce/public/partials/email/email-content.php
- > /wp-content/plugins/store-credit-for-woocommerce/includes/pisol.class.form.php
- 15× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/store-credit-for-woocommerce/admin/setting.php:73
- > PHP Notice
Undefined variable: top_desc in wp-content/plugins/store-credit-for-woocommerce/public/partials/email/email-content.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/store-credit-for-woocommerce/public/class-reminder-email.php:153
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/store-credit-for-woocommerce/public/class-email.php:169
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/store-credit-for-woocommerce/public/class-disable-other-fields.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function woocommerce_wp_text_input() in wp-content/plugins/store-credit-for-woocommerce/admin/partials/data-panel.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/store-credit-for-woocommerce/public/class-my-account.php:18
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/store-credit-for-woocommerce/admin/plugins.php:95
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/store-credit-for-woocommerce/public/class-reminder-email-scheduler.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/store-credit-for-woocommerce/public/partials/store-credit.php:4
- > PHP Fatal error
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 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: No descriptions were found for these screenshots #1, #10, #11, #12, #13, #14, #16, #17, #19, #2, #20, #3, #4, #6, #7, #9 in store-credit-for-woocommerce/assets to your readme.txt
store-credit-for-woocommerce/store-credit-for-woocommerce.php Passed 13 tests
Analyzing the main PHP file in "Store credit / Gift cards for woocommerce" version 1.0.42
18 characters long description:
Offer store credit
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
Everything looks great! No dangerous files found in this plugin14,300 lines of code in 49 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 2,103 | 29 | 9,674 |
PHP | 41 | 875 | 698 | 2,759 |
SVG | 2 | 2 | 2 | 1,621 |
JavaScript | 2 | 33 | 0 | 236 |
XML | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 13.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 2.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 28 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 28 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 208 | |
▷ Static methods | 47 | 22.60% |
▷ Public methods | 191 | 91.83% |
▷ Protected methods | 10 | 4.81% |
▷ Private methods | 7 | 3.37% |
Functions | 10 | |
▷ Named functions | 5 | 50.00% |
▷ Anonymous functions | 5 | 50.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
There were not PNG files found in your plugin