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.02MB] [CPU: ▼6.72ms] Passed 4 tests
An overview of server-side resources used by WP e-Commerce Simple Product Options
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 41.56 ▲3.57 |
Dashboard /wp-admin | 3.34 ▼0.01 | 45.25 ▼16.60 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 45.84 ▼2.54 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 89.51 ▼9.19 |
Media Library /wp-admin/upload.php | 3.27 ▲0.03 | 36.77 ▲1.44 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WP e-Commerce Simple Product Options
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.53 ▲0.18 | 1.64 ▼0.10 | 37.46 ▼4.06 |
Dashboard /wp-admin | 2,198 ▲21 | 5.59 ▼0.06 | 92.27 ▲3.98 | 41.49 ▼1.67 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.01 ▼0.00 | 39.36 ▲2.83 | 35.20 ▲1.91 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.24 ▼0.53 | 624.80 ▲7.14 | 53.60 ▲3.77 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.24 ▲0.04 | 100.96 ▼11.01 | 48.25 ▲1.02 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Walker' not found in wp-content/plugins/wp-e-commerce-simple-product-options/simple-product-options-admin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-e-commerce-simple-product-options/simple-product-options-frontend.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-e-commerce-simple-product-options/simple-product-options-common.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wp-e-commerce-simple-product-options/simple-product-options.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== wp-e-commerce-simple-product-options ===
)
wp-e-commerce-simple-product-options/simple-product-options.php 92% from 13 tests
Analyzing the main PHP file in "WP e-Commerce Simple Product Options" version 2.0
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-e-commerce-simple-product-options.php" instead of "simple-product-options.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin229 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 166 | 41 | 219 |
JavaScript | 1 | 0 | 0 | 10 |
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.42 |
Average class complexity | 9.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin