Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.14MB] [CPU: ▼11.75ms] Passed 4 tests
This is a short check of server-side resources used by Jigoshop Mini Cart
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 40.57 ▼5.52 |
Dashboard /wp-admin | 3.23 ▼0.07 | 35.73 ▼17.58 |
Posts /wp-admin/edit.php | 3.30 ▼0.06 | 41.50 ▼9.54 |
Add New Post /wp-admin/post-new.php | 5.47 ▼0.42 | 80.44 ▼14.35 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.06 ▼3.85 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Jigoshop Mini Cart: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲79 | 14.13 ▼0.24 | 1.70 ▼0.33 | 42.69 ▼1.14 |
Dashboard /wp-admin | 2,243 ▲66 | 5.63 ▲0.05 | 91.00 ▼1.55 | 40.67 ▲2.46 |
Posts /wp-admin/edit.php | 2,155 ▲52 | 2.12 ▲0.10 | 44.71 ▲0.29 | 39.70 ▲4.31 |
Add New Post /wp-admin/post-new.php | 1,571 ▲45 | 23.28 ▲0.41 | 667.20 ▼59.29 | 52.87 ▼12.44 |
Media Library /wp-admin/upload.php | 1,451 ▲51 | 4.27 ▲0.13 | 101.93 ▼13.93 | 45.46 ▼3.07 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/jigoshop-mini-cart/jigoshop-mini-cart.php
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 97% 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 to be fixed:
- Screenshots: Please add images for these screenshots: #1 (The cart before it is opened.), #2 (The cart after it is opened.)
jigoshop-mini-cart/jigoshop-mini-cart.php Passed 13 tests
Analyzing the main PHP file in "Jigoshop Mini Cart" version 0.1
49 characters long description:
A mini version of the shopping cart for Jigoshop.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin298 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 91 | 69 | 173 |
CSS | 1 | 0 | 3 | 61 |
LESS | 1 | 1 | 3 | 55 |
JavaScript | 1 | 7 | 0 | 9 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
3 PNG files occupy 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 22.61KB | 7.06KB | ▼ 68.78% |
screenshot-2.png | 42.28KB | 15.69KB | ▼ 62.89% |
cart.png | 2.98KB | 0.46KB | ▼ 84.51% |