Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼1.47ms] Passed 4 tests
An overview of server-side resources used by Common Ninja: Info Labels for WooCommerce
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.05 | 40.56 ▼0.89 |
Dashboard /wp-admin | 3.40 ▲0.05 | 53.61 ▼1.83 |
Posts /wp-admin/edit.php | 3.51 ▲0.11 | 50.55 ▼3.74 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.05 | 94.33 ▲0.66 |
Media Library /wp-admin/upload.php | 3.32 ▲0.05 | 39.34 ▲0.58 |
Info Labels /wp-admin/admin.php?page=common-ninja-info-labels-for-woocommerce | 3.28 | 33.06 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Common Ninja: Info Labels for WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲29 | 14.73 ▲0.01 | 1.97 ▲0.07 | 40.07 ▼10.65 |
Dashboard /wp-admin | 2,218 ▲41 | 5.49 ▼0.11 | 83.78 ▼4.12 | 39.42 ▼2.44 |
Posts /wp-admin/edit.php | 2,126 ▲29 | 2.04 ▲0.04 | 41.21 ▲1.84 | 35.39 ▼1.00 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 23.14 ▼0.01 | 642.56 ▼1.57 | 47.49 ▼5.73 |
Media Library /wp-admin/upload.php | 1,426 ▲23 | 4.14 ▲0.05 | 107.51 ▲1.73 | 44.28 ▲1.48 |
Info Labels /wp-admin/admin.php?page=common-ninja-info-labels-for-woocommerce | 815 | 1.99 | 23.91 | 27.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/common-ninja-info-labels-for-woocommerce/commonninja/commonninja.init.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/common-ninja-info-labels-for-woocommerce/common-ninja-info-labels-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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: photos editor, woocommerce, info labels, labels, tooltips...
common-ninja-info-labels-for-woocommerce/common-ninja-info-labels-for-woocommerce.php 77% from 13 tests
"Common Ninja: Info Labels for WooCommerce" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Requires at least: Required version must match the one declared in readme.txt ("4.0" instead of "5.2")
- Domain Path: The domain path should use only dashes and lowercase characters ("")
- Domain Path: The domain path must begin with a forward slash character ("/")
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
Success! There were no dangerous 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
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
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% |