90% wc-spoddano

Code Review | Spoddano - Cardano For Woocommerce

WordPress plugin Spoddano - Cardano For Woocommerce scored90%from 54 tests.

About plugin

  • Plugin page: wc-spoddano
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8.0-6.3.1
  • WordPress version: 6.3.1
  • First release: Oct 28, 2021
  • Latest release: Sep 17, 2023
  • Number of updates: 29
  • Update frequency: every 23.8 days
  • Top authors: stixen84 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active /1,337 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Analyzing server-side resources used by Spoddano - Cardano For Woocommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0035.56 ▼14.72
Dashboard /wp-admin3.31 ▼0.0345.78 ▼15.92
Posts /wp-admin/edit.php3.36 ▲0.0046.10 ▼3.74
Add New Post /wp-admin/post-new.php5.89 ▲0.0093.26 ▲1.60
Media Library /wp-admin/upload.php3.23 ▲0.0034.07 ▲1.86

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Spoddano - Cardano For Woocommerce
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.31 ▼1.104.26 ▲2.2043.83 ▲1.29
Dashboard /wp-admin2,206 ▲185.86 ▼0.02106.24 ▼8.4040.28 ▼8.60
Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0540.18 ▲3.9136.39 ▲2.07
Add New Post /wp-admin/post-new.php1,538 ▲1923.35 ▲0.13643.03 ▲12.9760.34 ▲13.67
Media Library /wp-admin/upload.php1,391 ▲34.22 ▲0.0299.85 ▲4.0041.66 ▼1.90

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • 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)
Even though no errors were found, 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
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 errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: cryptocurrency, woocommerce, cardano

wc-spoddano/spoddano__func.php 92% from 13 tests

The primary PHP file in "Spoddano - Cardano For Woocommerce" version 1.1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wc-spoddano.php" instead of "spoddano__func.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin368 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP495140351
CSS10117

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods562.50%
▷ Protected methods112.50%
▷ Private methods225.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/icon.png1.53KB1.00KB▼ 34.50%