90% wcs-custom-spinner

Code Review | WCS Custom Spinner

WordPress plugin WCS Custom Spinner scored90%from 54 tests.

About plugin

  • Plugin page: wcs-custom-spinner
  • Plugin version: 1.0.16
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: Feb 17, 2022
  • Latest release: Feb 17, 2022
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: devmunds (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,110 total downloads

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
Installer ran successfully

Server metrics [RAM: ▼0.01MB] [CPU: ▼12.53ms] Passed 4 tests

Analyzing server-side resources used by WCS Custom Spinner
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0142.12 ▲0.51
Dashboard /wp-admin3.32 ▼0.0350.83 ▼16.35
Posts /wp-admin/edit.php3.37 ▲0.0150.90 ▼10.37
Add New Post /wp-admin/post-new.php5.90 ▲0.0083.10 ▼23.91
Media Library /wp-admin/upload.php3.24 ▲0.0037.53 ▲4.24

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for WCS Custom Spinner
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.38 ▲0.091.85 ▼0.0443.78 ▼1.15
Dashboard /wp-admin2,198 ▲185.64 ▼0.0691.05 ▲2.2441.76 ▼4.33
Posts /wp-admin/edit.php2,106 ▲62.04 ▲0.0338.09 ▼1.4036.83 ▲1.95
Add New Post /wp-admin/post-new.php1,541 ▼422.99 ▼0.18675.81 ▼16.9455.04 ▼1.25
Media Library /wp-admin/upload.php1,406 ▲94.27 ▼0.0296.57 ▼9.9742.66 ▼2.76

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

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)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
No tags were found

wcs-custom-spinner/wcs-custom-spinner.php Passed 13 tests

The entry point to "WCS Custom Spinner" version 1.0.16 is a PHP file that has certain tags in its header comment area
31 characters long description:
Custom spinner for woocommerce.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin109 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS11080
PHP261427
Markdown1102

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods3100.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin