Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼283.87ms] Passed 4 tests
This is a short check of server-side resources used by SMNTCS Free Gift for WooCommerce
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.24 ▲0.04 | 60.78 ▲4.23 |
Dashboard /wp-admin | 4.06 ▲0.03 | 83.00 ▲26.57 |
Posts /wp-admin/edit.php | 4.36 ▲0.03 | 38.77 ▼3.13 |
Add New Post /wp-admin/post-new.php | 7.60 ▲0.00 | 95.74 ▼1,137.06 |
Media Library /wp-admin/upload.php | 4.01 ▲0.03 | 29.11 ▲0.50 |
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php | 5.26 | 58.53 |
Server storage [IO: ▲0.46MB] [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: 12 new files
Database: no new tables, 2 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by SMNTCS Free Gift for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,817 ▲73 | 15.76 ▲0.17 | 6.33 ▲0.34 | 2.09 ▼0.33 |
Dashboard /wp-admin | 2,911 ▲57 | 6.14 ▼0.03 | 120.08 ▼12.38 | 162.71 ▼2.04 |
Posts /wp-admin/edit.php | 2,704 ▲13 | 3.25 ▲0.00 | 79.74 ▼9.76 | 210.44 ▲57.78 |
Add New Post /wp-admin/post-new.php | 1,721 ▼52 | 20.66 ▼0.79 | 463.33 ▼9.63 | 209.76 ▲48.36 |
Media Library /wp-admin/upload.php | 1,717 ▲19 | 5.55 ▲0.03 | 155.22 ▼16.45 | 192.92 ▼12.00 |
Customize /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php | 7,199 | 19.54 | 508.24 | 224.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 2 options in the database
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/customize.php?return=%2Fwp-admin%2Fwp-api.php
- > Notice in wp-includes/class-wp-customize-nav-menus.php+1152
Trying to get property 'title' of non-object
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: woocommerce, free gift, woocommerce gift
smntcs-woocommerce-free-gift/smntcs-woocommerce-free-gift.php 92% from 13 tests
The entry point to "SMNTCS Free Gift for WooCommerce" version 1.6 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Domain Path: The domain path is invalid: folder "/languages/" does not exist
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
No dangerous file extensions were detected12,350 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 12,018 |
PHP | 1 | 30 | 84 | 216 |
XML | 1 | 13 | 14 | 51 |
Markdown | 1 | 14 | 0 | 36 |
YAML | 1 | 11 | 11 | 29 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
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 | 7 | |
▷ Named functions | 6 | 85.71% |
▷ Anonymous functions | 1 | 14.29% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin