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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 37.22 ▲0.36 |
Dashboard /wp-admin | 3.40 ▲0.10 | 45.56 ▼2.28 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 48.65 ▼0.09 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 91.52 ▼4.81 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 33.53 ▼0.25 |
Volusion /wp-admin/options-general.php?page=wpvolusion | 3.27 | 31.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.20 ▼1.19 | 1.90 ▼0.00 | 43.85 ▲1.81 |
Dashboard /wp-admin | 2,207 ▲16 | 4.85 ▼0.16 | 106.40 ▲1.40 | 42.65 ▼3.74 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▲0.00 | 39.08 ▼1.81 | 34.86 ▼4.69 |
Add New Post /wp-admin/post-new.php | 1,607 ▲79 | 21.89 ▲3.66 | 619.03 ▲15.59 | 38.55 ▼21.06 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.28 ▲0.04 | 95.09 ▼8.26 | 40.64 ▼3.67 |
Volusion /wp-admin/options-general.php?page=wpvolusion | 943 | 2.08 | 24.43 | 40.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
- > PHP Fatal error
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.)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 140 | 37 | 687 |
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 code | 0.40 |
Average class complexity | 73.00 |
▷ Minimum class complexity | 73.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 4.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 91.30% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 8.70% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
volusion-button.png | 3.07KB | 0.34KB | ▼ 88.99% |