Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼13.17ms] Passed 4 tests
Analyzing server-side resources used by Shimmer Loading effect for Woocommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 46.65 ▲5.26 |
Dashboard /wp-admin | 3.33 ▼0.01 | 49.32 ▼28.33 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 49.43 ▼4.92 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 85.21 ▼19.23 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.05 ▼0.21 |
Server storage [IO: ▲0.10MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
pslfree_switch |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Shimmer Loading effect for Woocommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,850 ▲104 | 14.38 ▲0.16 | 1.85 ▲0.20 | 30.35 ▼13.53 |
Dashboard /wp-admin | 2,215 ▲38 | 5.61 ▼0.04 | 90.61 ▼19.21 | 39.84 ▼1.22 |
Posts /wp-admin/edit.php | 2,120 ▲17 | 2.00 ▼0.00 | 39.38 ▼2.59 | 35.35 ▼1.00 |
Add New Post /wp-admin/post-new.php | 1,552 ▲24 | 17.80 ▼5.19 | 638.97 ▼6.25 | 72.65 ▲18.10 |
Media Library /wp-admin/upload.php | 1,423 ▲26 | 4.20 ▼0.05 | 101.92 ▼2.17 | 44.76 ▲0.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- theysaidso_admin_options
- pslfree_switch
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/products-skeleton-loader-free/public/partials/pslfree-public-display.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/products-skeleton-loader-free/includes/custom-products.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/products-skeleton-loader-free/admin/partials/pslfree-admin-display.php:22
- > PHP Fatal error
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 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Contributors: Plugin contributors not specified
products-skeleton-loader-free/products-skeleton-loader.php 77% from 13 tests
The main PHP script in "Shimmer Loading effect for Woocommerce" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
- Requires at least: Required version does not match the one declared in readme.txt ("5.0" instead of "4.9")
- Main file name: Name the main plugin file the same as the plugin slug ("products-skeleton-loader-free.php" instead of "products-skeleton-loader.php")
- 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
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
Success! There were no dangerous files found in this plugin1,196 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 53 | 68 | 605 |
PHP | 13 | 165 | 677 | 530 |
JavaScript | 3 | 19 | 82 | 61 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 1 | 3.85% |
▷ Public methods | 21 | 80.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 19.23% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/icon.png | 20.18KB | 6.40KB | ▼ 68.26% |