Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼6.65ms] Passed 4 tests
Server-side resources used by Common Ninja: Audio Player for WooCommerce
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 39.57 ▲2.30 |
Dashboard /wp-admin | 3.35 ▲0.01 | 43.16 ▼18.17 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 49.36 ▼0.09 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 92.37 ▼9.94 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.37 ▲1.59 |
Audio Player /wp-admin/admin.php?page=common-ninja-audio-player-for-woocommerce | 3.24 | 31.69 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Common Ninja: Audio Player for WooCommerce
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲55 | 13.24 ▼1.06 | 4.89 ▲3.00 | 42.00 ▼1.05 |
Dashboard /wp-admin | 2,226 ▲38 | 5.80 ▲0.69 | 101.98 ▼5.51 | 38.41 ▼8.45 |
Posts /wp-admin/edit.php | 2,115 ▲26 | 2.06 ▲0.05 | 41.35 ▼0.00 | 35.04 ▼3.62 |
Add New Post /wp-admin/post-new.php | 1,538 ▲24 | 23.27 ▲5.56 | 660.65 ▲44.48 | 66.62 ▲10.41 |
Media Library /wp-admin/upload.php | 1,408 ▲17 | 4.26 ▲0.06 | 98.40 ▼1.35 | 43.53 ▼0.53 |
Audio Player /wp-admin/admin.php?page=common-ninja-audio-player-for-woocommerce | 804 | 2.02 | 25.31 | 28.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% 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 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 fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/common-ninja-audio-player-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-audio-player-for-woocommerce/common-ninja-audio-player-for-woocommerce.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: podcast, audio player, audio, music, mp3 player...
common-ninja-audio-player-for-woocommerce/common-ninja-audio-player-for-woocommerce.php 77% from 13 tests
The principal PHP file in "Common Ninja: Audio Player for WooCommerce" v. 1.0.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- 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 ("/")
- Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "5.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected218 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
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
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% |