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.05MB] [CPU: ▼0.16ms] Passed 4 tests
This is a short check of server-side resources used by Common Ninja: Product Blobs for WooCommerce
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 44.86 ▲4.99 |
Dashboard /wp-admin | 3.36 ▲0.05 | 52.02 ▲1.03 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 53.24 ▲6.48 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 90.51 ▼3.03 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.67 ▼3.64 |
Product Blobs /wp-admin/admin.php?page=common-ninja-product-blobs-for-woocommerce | 3.25 | 40.12 |
Server storage [IO: ▲0.02MB] [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 |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Common Ninja: Product Blobs for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 14.35 ▲0.09 | 2.40 ▲0.54 | 48.22 ▼2.04 |
Dashboard /wp-admin | 2,224 ▲44 | 5.65 ▲0.02 | 90.74 ▼3.36 | 40.95 ▼0.89 |
Posts /wp-admin/edit.php | 2,129 ▲26 | 1.99 ▲0.00 | 40.06 ▲1.94 | 34.67 ▼4.47 |
Add New Post /wp-admin/post-new.php | 1,558 ▲21 | 17.83 ▼0.23 | 609.38 ▼9.86 | 65.84 ▼2.39 |
Media Library /wp-admin/upload.php | 1,420 ▲17 | 4.23 ▼0.00 | 100.85 ▼0.36 | 47.27 ▲1.57 |
Product Blobs /wp-admin/admin.php?page=common-ninja-product-blobs-for-woocommerce | 815 | 1.99 | 22.02 | 28.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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/common-ninja-product-blobs-for-woocommerce/commonninja/commonninja.init.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/common-ninja-product-blobs-for-woocommerce/common-ninja-product-blobs-for-woocommerce.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: plugin, visualization, blobs, products, content...
common-ninja-product-blobs-for-woocommerce/common-ninja-product-blobs-for-woocommerce.php 77% from 13 tests
The main PHP file in "Common Ninja: Product Blobs for WooCommerce" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Requires at least: The required version number did not match the one declared in readme.txt ("4.0" instead of "5.2")
- Domain Path: Note that the domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("")
- Domain Path: The domain path should be prefixed with a forward slash character ("/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin218 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 37 | 29 | 158 |
CSS | 2 | 5 | 0 | 60 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
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 | 16 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 16 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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 |
_inc/commonninja.png | 2.92KB | 1.62KB | ▼ 44.44% |