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.07MB] [CPU: ▼2.64ms] Passed 4 tests
Server-side resources used by MYAP for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 37.85 ▼4.53 |
Dashboard /wp-admin | 3.38 ▲0.07 | 45.20 ▼5.26 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 45.51 ▼2.29 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 91.99 ▲2.82 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.07 ▲1.51 |
MYAP Config /wp-admin/options-general.php?page=wcmyap_plugin | 3.24 | 30.61 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for MYAP for WooCommerce
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.63 ▼0.68 | 1.78 ▼0.09 | 40.22 ▼8.51 |
Dashboard /wp-admin | 2,213 ▲22 | 5.77 ▼0.13 | 96.45 ▼9.36 | 40.17 ▼3.26 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 1.97 ▼0.08 | 35.69 ▼0.07 | 32.34 ▲1.42 |
Add New Post /wp-admin/post-new.php | 1,517 ▲3 | 23.58 ▲5.95 | 577.01 ▼122.87 | 64.55 ▼1.70 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.19 ▼0.11 | 97.77 ▲1.91 | 46.69 ▲4.33 |
MYAP Config /wp-admin/options-general.php?page=wcmyap_plugin | 912 | 2.03 | 23.62 | 30.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 8 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wcmyap_plugin
- > Notice in wp-content/plugins/myap-v10-tracking-for-woocommerce/wc-myap10-settings.php+114
Trying to access array offset on value of type bool
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 fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/myap-v10-tracking-for-woocommerce/wc-myap10-settings.php:2
- > 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 93% from 29 tests
readme.txt Passed 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
9 plugin tags: myap, affiliate program, woocommerce, affiliate tool, affiliate plugin...
myap-v10-tracking-for-woocommerce/wc-myap10.php 85% from 13 tests
The entry point to "MYAP for WooCommerce" version 10.1.43.1023 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("myap-v10-tracking-for-woocommerce.php" instead of "wc-myap10.php")
- Requires at least: The required version number must match the one declared in readme.txt ("4.0.0" instead of "2.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin292 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 102 | 20 | 292 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 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
PNG images were not found in this plugin