Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼9.93ms] Passed 4 tests
This is a short check of server-side resources used by WC Price History for Omnibus
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 32.81 ▼8.57 |
Dashboard /wp-admin | 3.36 ▲0.01 | 47.39 ▼14.29 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 48.64 ▼0.80 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 88.99 ▼16.07 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.06 ▲1.52 |
Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
WC Price History for Omnibus: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲49 | 14.67 ▲0.57 | 1.66 ▲0.07 | 39.39 ▼5.06 |
Dashboard /wp-admin | 2,201 ▲24 | 5.60 ▲0.02 | 90.06 ▼13.70 | 42.71 ▲0.45 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.97 ▲0.01 | 42.67 ▲7.64 | 36.35 ▼1.87 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.29 ▲0.01 | 593.83 ▼40.03 | 55.72 ▲4.85 |
Media Library /wp-admin/upload.php | 1,406 ▲12 | 4.29 ▲0.07 | 98.45 ▲0.95 | 40.44 ▼1.51 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% 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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wc-price-history/constants.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wc-price-history/constants.php:3
- > PHP Fatal error
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 93% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: woocommerce, 30days, prior, omnibus, history...
wc-price-history/plugin.php 85% from 13 tests
The principal PHP file in "WC Price History for Omnibus" v. 1.8.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 254 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wc-price-history.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,510 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 361 | 956 | 1,400 |
CSS | 2 | 17 | 0 | 78 |
Markdown | 1 | 12 | 0 | 18 |
XML | 1 | 0 | 0 | 7 |
JSON | 1 | 0 | 0 | 5 |
JavaScript | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 11.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 100 | |
▷ Static methods | 19 | 19.00% |
▷ Public methods | 87 | 87.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 13.00% |
Functions | 8 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 8 | 100.00% |
Constants | 5 | |
▷ Global constants | 3 | 60.00% |
▷ Class constants | 2 | 40.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.07MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 74.43KB | 26.70KB | ▼ 64.13% |