77% products-skeleton-loader-free

Code Review | Shimmer Loading effect for Woocommerce

WordPress plugin Shimmer Loading effect for Woocommerce scored77%from 54 tests.

About plugin

  • Plugin page: products-skeleton...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.1
  • WordPress version: 6.3.1
  • First release: Jan 7, 2022
  • Latest release: Nov 9, 2022
  • Number of updates: 18
  • Update frequency: every 16.9 days
  • Top authors: teknofraction (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /1,443 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0346.65 ▲5.26
Dashboard /wp-admin3.33 ▼0.0149.32 ▼28.33
Posts /wp-admin/edit.php3.38 ▲0.0349.43 ▼4.92
Add New Post /wp-admin/post-new.php5.93 ▲0.0585.21 ▼19.23
Media Library /wp-admin/upload.php3.26 ▲0.0336.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲10414.38 ▲0.161.85 ▲0.2030.35 ▼13.53
Dashboard /wp-admin2,215 ▲385.61 ▼0.0490.61 ▼19.2139.84 ▼1.22
Posts /wp-admin/edit.php2,120 ▲172.00 ▼0.0039.38 ▼2.5935.35 ▼1.00
Add New Post /wp-admin/post-new.php1,552 ▲2417.80 ▼5.19638.97 ▼6.2572.65 ▲18.10
Media Library /wp-admin/upload.php1,423 ▲264.20 ▼0.05101.92 ▼2.1744.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

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
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
CSS35368605
PHP13165677530
JavaScript3198261

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 code0.19
Average class complexity3.00
▷ Minimum class complexity1.00
▷ Maximum class complexity7.00
Average method complexity1.54
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods26
▷ Static methods13.85%
▷ Public methods2180.77%
▷ Protected methods00.00%
▷ Private methods519.23%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/icon.png20.18KB6.40KB▼ 68.26%