90% custom-spinner-for-woocommerce

Code Review | Custom Spinner For WooCommerce: custom spinner for the WooCommerce checkout and cart pages

WordPress plugin Custom Spinner For WooCommerce: custom spinner for the WooCommerce checkout and cart pages scored90%from 54 tests.

About plugin

  • Plugin page: custom-spinner-fo...
  • Plugin version: 0.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Feb 4, 2023
  • Latest release: Nov 1, 2023
  • Number of updates: 15
  • Update frequency: every 18.0 days
  • Top authors: giuse (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /679 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.98ms] Passed 4 tests

An overview of server-side resources used by Custom Spinner For WooCommerce: custom spinner for the WooCommerce checkout and cart pages
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.46 ▼4.91
Dashboard /wp-admin3.31 ▲0.0144.52 ▼6.12
Posts /wp-admin/edit.php3.36 ▲0.0045.13 ▼4.35
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.98 ▼20.54
Media Library /wp-admin/upload.php3.23 ▲0.0037.87 ▲4.62

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Custom Spinner For WooCommerce: custom spinner for the WooCommerce checkout and cart pages
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1814.23 ▼0.041.68 ▼0.1437.43 ▼7.37
Dashboard /wp-admin2,195 ▲215.62 ▼0.0595.29 ▼3.8042.04 ▼4.43
Posts /wp-admin/edit.php2,100 ▼32.00 ▲0.0339.42 ▲0.9835.27 ▼1.43
Add New Post /wp-admin/post-new.php1,526 ▼023.33 ▲0.21661.80 ▼42.3852.62 ▼0.43
Media Library /wp-admin/upload.php1,403 ▲34.25 ▲0.04101.68 ▼15.4944.50 ▼3.89

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: spinner, checkout, ajax loader

custom-spinner-for-woocommerce/custom-spinner-for-woocommerce.php 92% from 13 tests

This is the main PHP file of "Custom Spinner For WooCommerce: custom spinner for the WooCommerce checkout and cart pages" version 0.0.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages/" does not exist

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
No dangerous file extensions were detected121 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP372098
JavaScript13023

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.58
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions114.29%
▷ Anonymous functions685.71%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

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
No PNG files were detected