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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼7.29ms] Passed 4 tests
An overview of server-side resources used by CartNinja - Wordpress Shopping Cart
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.69 ▼1.28 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.14 ▼7.48 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.84 ▲0.17 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 85.52 ▼20.57 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 43.59 ▲4.91 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
CNCSS |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
CNJS |
theysaidso_admin_options |
can_compress_scripts |
CNOutputForm |
Browser metrics Passed 4 tests
A check of browser resources used by CartNinja - Wordpress Shopping Cart
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,910 ▲149 | 13.89 ▼0.45 | 7.69 ▲5.85 | 41.45 ▼3.08 |
Dashboard /wp-admin | 2,213 ▲33 | 5.59 ▼0.07 | 88.07 ▼2.20 | 65.40 ▲20.91 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 1.99 ▼0.00 | 33.28 ▼7.02 | 32.75 ▼4.89 |
Add New Post /wp-admin/post-new.php | 6,515 ▲4,989 | 27.37 ▲3.79 | 994.05 ▲332.14 | 72.80 ▲19.19 |
Media Library /wp-admin/upload.php | 1,412 ▲15 | 4.20 ▲0.09 | 102.99 ▼0.24 | 79.75 ▲38.18 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- CNCSS
- db_upgraded
- widget_recent-posts
- CNJS
- CNOutputForm
- can_compress_scripts
- theysaidso_admin_options
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cart-ninja-wordpress-shopping-cart/CartNinja.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Logo), #2 (Sales Reports), #3 (Adding in Products), #4 (Add to Cart Form), #5 (Cart Ninja Dashboard)
cart-ninja-wordpress-shopping-cart/CartNinja.php 85% from 13 tests
The primary PHP file in "CartNinja - Wordpress Shopping Cart" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 341 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("cart-ninja-wordpress-shopping-cart.php" instead of "CartNinja.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected573 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 102 | 34 | 376 |
CSS | 1 | 0 | 0 | 137 |
JavaScript | 1 | 20 | 6 | 60 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.40 |
▷ 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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
12 PNG files occupy 0.31MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 38.30KB | 15.30KB | ▼ 60.05% |
screenshot-2.png | 32.22KB | 13.55KB | ▼ 57.96% |
banner-772x250.png | 45.79KB | 20.66KB | ▼ 54.88% |
CNLogo.png | 26.82KB | 10.81KB | ▼ 59.70% |
defaultBox.png | 3.65KB | 2.87KB | ▼ 21.28% |