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
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼1.94ms] Passed 4 tests
Server-side resources used by Snappic for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.49 ▲0.19 |
Dashboard /wp-admin | 3.35 ▲0.04 | 47.91 ▲1.13 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 45.72 ▲1.51 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 85.92 ▼10.59 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.28 ▲1.75 |
Server storage [IO: ▲1.19MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
Snappic for WooCommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.15 ▼1.22 | 4.73 ▲2.95 | 44.88 ▲4.39 |
Dashboard /wp-admin | 2,210 ▲19 | 4.88 ▲0.01 | 106.95 ▲4.42 | 45.45 ▲3.28 |
Posts /wp-admin/edit.php | 2,092 ▼0 | 2.06 ▲0.01 | 33.59 ▼3.81 | 32.29 ▲2.47 |
Add New Post /wp-admin/post-new.php | 1,537 ▲4 | 23.32 ▲0.06 | 625.14 ▲5.14 | 59.77 ▲6.88 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.21 ▼0.03 | 98.35 ▼18.85 | 49.96 ▼0.55 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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
These attributes need to be fixed:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
snappic/snappic-for-woocommerce.php 85% from 13 tests
"Snappic for WooCommerce" version 1.3.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: It is recommended to name the main PHP file as the plugin slug ("snappic.php" instead of "snappic-for-woocommerce.php")
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
There were no executable files found in this plugin1,437 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 272 | 434 | 816 |
CSS | 1 | 20 | 13 | 391 |
SVG | 5 | 0 | 5 | 94 |
Bourne Shell | 2 | 8 | 0 | 59 |
JavaScript | 2 | 28 | 95 | 47 |
JSON | 1 | 0 | 0 | 28 |
Markdown | 1 | 1 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 10.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 76 | |
▷ Static methods | 17 | 22.37% |
▷ Public methods | 70 | 92.11% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 7.89% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 8 | 100.00% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin