Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.44ms] Passed 4 tests
This is a short check of server-side resources used by Sift for WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 51.53 ▲3.70 |
Dashboard /wp-admin | 3.32 ▲0.02 | 49.06 ▼2.39 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 50.48 ▼5.70 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 93.17 ▼12.59 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 36.58 ▼1.08 |
Server storage [IO: ▲0.70MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Sift for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.25 ▼0.15 | 1.78 ▼0.10 | 38.30 ▼7.49 |
Dashboard /wp-admin | 2,198 ▲21 | 5.67 ▲0.02 | 89.45 ▼0.66 | 36.46 ▼4.27 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 2.01 ▲0.02 | 40.00 ▼3.46 | 36.78 ▼1.22 |
Add New Post /wp-admin/post-new.php | 1,525 ▼12 | 23.83 ▲5.68 | 587.98 ▼72.21 | 62.84 ▼7.67 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.22 ▲0.09 | 100.80 ▼17.06 | 46.12 ▼1.20 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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 shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: fermiac, sift, woocommerce, fraud
fermiac-siftscience-for-woocommerce/class-wc-siftscience-plugin.php 92% from 13 tests
"Sift for WooCommerce" version 1.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
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 ("fermiac-siftscience-for-woocommerce.php" instead of "class-wc-siftscience-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected14,729 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 135 | 1,614 | 12,485 |
PHP | 21 | 519 | 1,579 | 2,167 |
CSS | 2 | 9 | 0 | 44 |
Markdown | 1 | 13 | 0 | 22 |
YAML | 1 | 0 | 0 | 10 |
Bourne Shell | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of 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.26 |
Average class complexity | 9.95 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 160 | |
▷ Static methods | 1 | 0.62% |
▷ Public methods | 121 | 75.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 39 | 24.38% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 39 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 39 | 100.00% |
▷ Public constants | 23 | 58.97% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dist/images/good-gray.png | 0.31KB | 0.27KB | ▼ 11.75% |
dist/images/bad-gray.png | 0.44KB | 0.40KB | ▼ 8.65% |
dist/images/clipboard.png | 0.48KB | 0.37KB | ▼ 24.14% |
dist/images/upload.png | 0.27KB | 0.23KB | ▼ 15.11% |
dist/images/bad.png | 0.39KB | 0.38KB | ▼ 3.24% |