Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▲0.33ms] Passed 4 tests
Server-side resources used by Name: WP e-Commerce Table Price Shortcode
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 35.02 ▼3.23 |
Dashboard /wp-admin | 3.31 ▲0.01 | 53.12 ▲0.60 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.58 ▲1.69 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 96.07 ▲3.65 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.82 ▲2.27 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Name: WP e-Commerce Table Price Shortcode: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲43 | 13.27 ▼0.71 | 1.59 ▼0.32 | 38.57 ▼9.96 |
Dashboard /wp-admin | 2,206 ▲24 | 4.86 ▼0.99 | 111.47 ▲4.45 | 43.44 ▼0.29 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.04 ▲0.04 | 39.46 ▲4.69 | 35.77 ▲1.61 |
Add New Post /wp-admin/post-new.php | 1,548 ▲24 | 18.21 ▼5.16 | 599.51 ▼87.79 | 70.05 ▲12.08 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.18 ▼0.00 | 99.08 ▼2.99 | 44.22 ▼1.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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 take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-e-commerce-table-price-shortcode/wp-e-commerce-table-price-shortcode.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% 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 require images: #1 (example output of the plugin shortcode.), #2 (example use of the plugin shortcode.)
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
- Plugin Name: Please specify the plugin name on the first line (
=== Name: WP e-Commerce Table Price Shortcode===
)
wp-e-commerce-table-price-shortcode/wp-e-commerce-table-price-shortcode.php Passed 13 tests
Analyzing the main PHP file in "Name: WP e-Commerce Table Price Shortcode" version 1.0.2
77 characters long description:
Displays Table Prices for a WP E-Commerce Store Item using Table Rate Pricing
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin35 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 37 | 16 | 35 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 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
No PNG images were found in this plugin