84% spiff-3d-product-customizer

Code Review | Spiff 3D Product Customizer and Product Designer for WooCommerce

WordPress plugin Spiff 3D Product Customizer and Product Designer for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: spiff-3d-product-...
  • Plugin version: 2.0.69
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 2, 2020
  • Latest release: Jun 16, 2023
  • Number of updates: 93
  • Update frequency: every 10.6 days
  • Top authors: spiffsupport (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

80+ active /5,148 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼5.57ms] Passed 4 tests

This is a short check of server-side resources used by Spiff 3D Product Customizer and Product Designer for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0942.03 ▼8.05
Dashboard /wp-admin3.40 ▲0.0952.73 ▲0.25
Posts /wp-admin/edit.php3.52 ▲0.1549.19 ▼1.39
Add New Post /wp-admin/post-new.php5.98 ▲0.0992.14 ▼13.08
Media Library /wp-admin/upload.php3.33 ▲0.0940.45 ▲6.01

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
spiff_plugin_was_activated
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Spiff 3D Product Customizer and Product Designer for WooCommerce
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5114.30 ▲0.012.66 ▲0.4249.01 ▲2.85
Dashboard /wp-admin2,211 ▲315.62 ▼0.0795.25 ▲1.7442.77 ▲5.63
Posts /wp-admin/edit.php2,116 ▲131.95 ▼0.0635.37 ▼3.7833.65 ▼2.19
Add New Post /wp-admin/post-new.php1,540 ▼423.01 ▲5.01642.59 ▼33.4856.76 ▼10.39
Media Library /wp-admin/upload.php1,416 ▲224.19 ▲0.0094.59 ▼4.1045.17 ▲3.85

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • spiff_plugin_was_activated
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% 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 50% from 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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/spiff-3d-product-customizer/spiff-connect.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #6 (Conditional Steps), #7 (Upload on Mobile is easy), #8 (Unique Patchwork Feature), #9 (Full Screen Toggle on Mobile)
Please take inspiration from this readme.txt

spiff-3d-product-customizer/spiff-connect.php 92% from 13 tests

The main PHP script in "Spiff 3D Product Customizer and Product Designer for WooCommerce" version 2.0.69 is automatically included on every request by WordPress
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("spiff-3d-product-customizer.php" instead of "spiff-connect.php")

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
Good job! No executable or dangerous file extensions detected475 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP27761410
JavaScript214665

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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.19MB with 0.13MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/spiff_logo.png192.23KB62.78KB▼ 67.34%