Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- The plugin cannot be installed
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in tabularPricePaneWidget is deprecated since version 4.3.0! Use __construct() instead.
Server metrics [RAM: ▼1.96MB] [CPU: ▼52.76ms] Passed 4 tests
This is a short check of server-side resources used by Tabular Price Pane
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 5.09 ▼31.84 |
Dashboard /wp-admin | 2.05 ▼1.26 | 6.88 ▼41.49 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 6.84 ▼41.84 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 6.96 ▼95.88 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.78 ▼28.45 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_tabularpricepaneadmin |
Browser metrics Passed 4 tests
Tabular Price Pane: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲75 | 14.46 ▲0.06 | 1.71 ▼0.26 | 39.99 ▼5.82 |
Dashboard /wp-admin | 2,210 ▲19 | 5.79 ▼0.09 | 105.10 ▲3.40 | 39.31 ▼5.61 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.00 ▼0.04 | 39.88 ▼0.44 | 36.91 ▼2.31 |
Add New Post /wp-admin/post-new.php | 1,539 ▲25 | 23.13 ▲5.51 | 630.37 ▲11.47 | 51.58 ▲1.44 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.22 ▼0.03 | 95.51 ▼10.82 | 40.78 ▼4.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin cannot be uninstalled
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in tabularPricePaneWidget is deprecated since version 4.3.0! Use __construct() instead.
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_tabularpricepaneadmin
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 23 tag instead of maximum 10
tabular-price-pane/plugin.php 92% from 13 tests
The main PHP script in "Tabular Price Pane" version 1.0 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("tabular-price-pane.php" instead of "plugin.php")
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
Everything looks great! No dangerous files found in this plugin1,294 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 183 | 375 | 882 |
JavaScript | 2 | 17 | 3 | 162 |
PO File | 1 | 59 | 104 | 132 |
CSS | 2 | 9 | 12 | 118 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 1 | 33.33% |
▷ Concrete classes | 2 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 20 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 9.09% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 20 | |
▷ Global constants | 20 | 100.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
8 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/ac_close.png | 0.27KB | 0.17KB | ▼ 34.80% |
assets/images/right-icon.png | 0.36KB | 0.44KB | 0.00% |
assets/images/ac_bottom.png | 0.28KB | 0.27KB | ▼ 5.54% |
assets/images/view-more.png | 0.36KB | 0.33KB | ▼ 7.14% |
assets/images/cart.png | 0.48KB | 0.47KB | ▼ 1.84% |