Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.29MB] [CPU: ▼164.70ms] Passed 4 tests
This is a short check of server-side resources used by WPi PriceList Shortcode - Create pricelist using shortcode in easy way
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.06 | 32.80 ▲4.97 |
Dashboard /wp-admin | 3.11 ▲0.05 | 37.08 ▼3.91 |
Posts /wp-admin/edit.php | 3.16 ▲0.06 | 37.32 ▲2.08 |
Add New Post /wp-admin/post-new.php | 4.11 ▼1.33 | 38.36 ▼661.93 |
Media Library /wp-admin/upload.php | 3.06 ▲0.05 | 32.01 ▲6.35 |
Add New /wp-admin/post-new.php?post_type=wpi_pricelist | 2.99 | 26.80 |
WPi PriceList /wp-admin/edit.php?post_type=wpi_pricelist | 3.10 | 29.71 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for WPi PriceList Shortcode - Create pricelist using shortcode in easy way
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,710 ▲109 | 15.99 ▼0.03 | 5.90 ▲0.24 | 78.18 ▲1.66 |
Dashboard /wp-admin | 2,964 ▲68 | 6.05 ▼0.10 | 114.87 ▼23.57 | 168.57 ▼8.67 |
Posts /wp-admin/edit.php | 2,780 ▲40 | 3.25 ▲0.03 | 62.00 ▲0.15 | 142.43 ▲2.54 |
Add New Post /wp-admin/post-new.php | 3,729 ▼78 | 18.63 ▲0.02 | 435.96 ▲1.65 | 154.74 ▲0.13 |
Media Library /wp-admin/upload.php | 1,787 ▲35 | 5.44 ▼0.05 | 145.60 ▼0.55 | 183.74 ▼3.07 |
Add New /wp-admin/post-new.php?post_type=wpi_pricelist | 2,266 | 3.88 | 103.99 | 150.17 |
WPi PriceList /wp-admin/edit.php?post_type=wpi_pricelist | 1,475 | 3.06 | 59.32 | 112.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/post-new.php?post_type=wpi_pricelist
- > Notice in wp-content/plugins/wpi-pricelist-shortcode/wp-pricelist-shortcode.php+64
Undefined index: wpi_pl_meta_box_nonce
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 items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wpi-pricelist-shortcode/wp-pricelist-shortcode.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wpi-pricelist-shortcode/wp-pricelist-shortcode.php 77% from 13 tests
The main PHP script in "WPi PriceList Shortcode - Create pricelist using shortcode in easy way" version 1.0.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpi-pricelist-shortcode.php" instead of "wp-pricelist-shortcode.php")
- Domain Path: The domain path points to a folder that does not exist ("/locale/")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected236 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 10 | 25 | 140 |
CSS | 1 | 3 | 1 | 96 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 3.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
There are no PNG files in this plugin