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 gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.36ms] Passed 4 tests
An overview of server-side resources used by WooCommerce Shortcodes
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 37.72 ▼1.55 |
Dashboard /wp-admin | 3.32 ▲0.01 | 43.92 ▼2.05 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.04 ▼7.70 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 78.93 ▼21.20 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.07 ▼2.47 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WooCommerce Shortcodes
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲61 | 13.26 ▼1.11 | 5.03 ▲3.13 | 43.67 ▲0.97 |
Dashboard /wp-admin | 2,213 ▲22 | 4.85 ▼1.03 | 108.62 ▲3.27 | 39.22 ▼5.33 |
Posts /wp-admin/edit.php | 2,095 ▲3 | 2.01 ▲0.01 | 40.92 ▲0.04 | 39.81 ▲5.38 |
Add New Post /wp-admin/post-new.php | 1,521 ▲2 | 17.44 ▼5.52 | 699.07 ▲39.01 | 50.99 ▼5.78 |
Media Library /wp-admin/upload.php | 1,398 ▲10 | 4.22 ▲0.03 | 95.40 ▼16.31 | 40.34 ▼6.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: woocommerce, shortcodes
woocommerce-shortcodes/woocommerce-shortcodes.php Passed 13 tests
Analyzing the main PHP file in "WooCommerce Shortcodes" version 1.0.0
23 characters long description:
WooCommerce Shortcodes.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected919 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 10 | 10 | 757 |
PHP | 3 | 34 | 93 | 146 |
Sass | 1 | 1 | 0 | 15 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 1 | 8.33% |
▷ Public methods | 11 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 8.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin