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
Installer ran successfully
Server metrics [RAM: ▲0.28MB] [CPU: ▼1.86ms] Passed 4 tests
Analyzing server-side resources used by Fami WooCommerce Compare
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 58.33 ▲4.81 |
Dashboard /wp-admin | 3.58 ▲0.28 | 57.90 ▲1.22 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 54.44 ▼3.78 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.30 | 101.98 ▼9.70 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 44.82 ▲7.83 |
Server storage [IO: ▲0.67MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 62 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Fami WooCommerce Compare
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,947 ▲186 | 13.99 ▼0.60 | 13.34 ▲11.53 | 56.49 ▲11.69 |
Dashboard /wp-admin | 2,214 ▲34 | 5.61 ▼0.06 | 91.96 ▲1.91 | 72.45 ▲27.77 |
Posts /wp-admin/edit.php | 2,138 ▲38 | 2.02 ▲0.05 | 36.73 ▼3.74 | 33.73 ▼5.16 |
Add New Post /wp-admin/post-new.php | 1,555 ▲20 | 23.00 ▲4.93 | 699.68 ▲57.27 | 172.37 ▲95.81 |
Media Library /wp-admin/upload.php | 1,425 ▲25 | 4.27 ▲0.08 | 98.91 ▲3.56 | 73.01 ▲31.00 |
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-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
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 shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: Please add descriptions for these screenshots #4, #5, #6, #7 in fami-woocommerce-compare/assets to your readme.txt
fami-woocommerce-compare/fami-woocommerce-compare.php 92% from 13 tests
"Fami WooCommerce Compare" version 1.0.5'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:
- Description: Keep the plugin description shorter than 140 characters (currently 478 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin10,345 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 1,408 | 1,027 | 4,504 |
CSS | 12 | 174 | 116 | 2,322 |
PHP | 10 | 373 | 334 | 1,737 |
Sass | 5 | 105 | 5 | 1,127 |
SVG | 2 | 2 | 3 | 415 |
LESS | 1 | 11 | 5 | 152 |
Markdown | 1 | 42 | 0 | 80 |
Ruby | 1 | 2 | 0 | 8 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 56.25 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 103.00 |
Average method complexity | 4.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 58 | |
▷ Static methods | 22 | 37.93% |
▷ Public methods | 58 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
8 PNG files occupy 0.06MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/noimage/no_image-90x90.png | 0.66KB | 0.22KB | ▼ 66.91% |
assets/images/noimage/no_image-180x200.png | 0.62KB | 0.10KB | ▼ 84.30% |
assets/images/noimage/no_image_color.png | 0.42KB | 0.10KB | ▼ 76.80% |
assets/images/noimage/no_image.png | 16.67KB | 0.57KB | ▼ 96.60% |
assets/vendors/owl/assets/owl.video.play.png | 4.86KB | 2.74KB | ▼ 43.61% |