78% volusion

Code Review | Volusion

WordPress plugin Volusion scored78%from 54 tests.

About plugin

  • Plugin page: volusion
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-4.0
  • WordPress version: 6.3.1
  • First release: Dec 11, 2010
  • Latest release: Sep 17, 2014
  • Number of updates: 23
  • Update frequency: every 59.8 days
  • Top authors: katzwebdesign (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /4,984 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼1.86ms] Passed 4 tests

A check of server-side resources used by Volusion
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0937.22 ▲0.36
Dashboard /wp-admin3.40 ▲0.1045.56 ▼2.28
Posts /wp-admin/edit.php3.52 ▲0.1648.65 ▼0.09
Add New Post /wp-admin/post-new.php5.98 ▲0.1091.52 ▼4.81
Media Library /wp-admin/upload.php3.33 ▲0.1033.53 ▼0.25
Volusion /wp-admin/options-general.php?page=wpvolusion3.2731.66

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Volusion
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.20 ▼1.191.90 ▼0.0043.85 ▲1.81
Dashboard /wp-admin2,207 ▲164.85 ▼0.16106.40 ▲1.4042.65 ▼3.74
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0039.08 ▼1.8134.86 ▼4.69
Add New Post /wp-admin/post-new.php1,607 ▲7921.89 ▲3.66619.03 ▲15.5938.55 ▼21.06
Media Library /wp-admin/upload.php1,392 ▲74.28 ▲0.0495.09 ▼8.2640.64 ▼3.67
Volusion /wp-admin/options-general.php?page=wpvolusion9432.0824.4340.71

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=wpvolusion
    • > Notice in wp-content/plugins/volusion/volusion.php+254
    Undefined variable: output

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/volusion/media-process.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/volusion/volusion.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Tags: There are too many tags (17 tag instead of maximum 10)
  • Screenshots: Add images for these screenshots: #1 (Once configured, easily add an image from your Volusion shopping cart and link it to the product page. Adding product images has never been easier!), #2 (How the Add Products modal screen appears in the WordPress editor.), #3 (A button is added to the editor (next to the Media buttons). The product links appear as the `[volusion]` shortcode.), #4 (This shows the shortcode from above on the live site.)
The official readme.txt might help

volusion/volusion.php Passed 13 tests

"Volusion" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
55 characters long description:
Integrate Volusion products into your WordPress website

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
There were no executable files found in this plugin687 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP214037687

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity73.00
▷ Minimum class complexity73.00
▷ Maximum class complexity73.00
Average method complexity4.13
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods23
▷ Static methods00.00%
▷ Public methods2191.30%
▷ Protected methods00.00%
▷ Private methods28.70%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
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
volusion-button.png3.07KB0.34KB▼ 88.99%