Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin did not install without errors
- > User error in wp-content/plugins/product-lister-ebay/product-lister-ebay.php+48
Server metrics [RAM: ▲0.81MB] [CPU: ▲0.05ms] Passed 4 tests
Server-side resources used by Product Lister for eBay
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.32 ▲0.85 | 46.20 ▲3.03 |
Dashboard /wp-admin | 4.15 ▲0.84 | 64.30 ▲14.08 |
Posts /wp-admin/edit.php | 4.20 ▲0.84 | 48.68 ▲1.53 |
Add New Post /wp-admin/post-new.php | 6.69 ▲0.80 | 91.46 ▼9.45 |
Media Library /wp-admin/upload.php | 4.01 ▲0.78 | 40.84 ▲5.10 |
Server storage [IO: ▲6.67MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 157 new files
Database: 5 new tables, 6 new options
New tables |
---|
wp_ced_ebay_shipping |
wp_ced_ebay_accounts |
wp_ced_ebay_profiles |
wp_ced_ebay_discription_template |
wp_ced_ebay_logs |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
Product Lister for eBay: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲76 | 14.74 ▲0.39 | 1.62 ▼0.11 | 43.60 ▼0.39 |
Dashboard /wp-admin | 2,214 ▲34 | 5.87 ▲0.24 | 88.06 ▲1.85 | 39.11 ▲1.92 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 2.37 ▲0.36 | 37.77 ▲1.80 | 31.63 ▼3.23 |
Add New Post /wp-admin/post-new.php | 1,542 ▲14 | 21.11 ▼1.97 | 687.87 ▲15.96 | 47.79 ▼2.85 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.56 ▲0.36 | 97.62 ▲3.20 | 41.42 ▼1.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The plugin did not uninstall successfully, leaving 5 tables in the database
- wp_ced_ebay_logs
- wp_ced_ebay_discription_template
- wp_ced_ebay_accounts
- wp_ced_ebay_shipping
- wp_ced_ebay_profiles
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATH/wp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/product-lister-ebay/product-lister-ebay.php on line 40
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/product-lister-ebay/product-lister-ebay.php on line 40
- > PHP Warning
require_once(ABSPATH/wp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/product-lister-ebay/product-lister-ebay.php on line 40
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
product-lister-ebay/product-lister-ebay.php 92% from 13 tests
The main PHP script in "Product Lister for eBay" version 2.0.8 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis 97% from 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 plugin133,654 lines of code in 139 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 76 | 22,566 | 15,863 | 116,997 |
PHP | 46 | 1,653 | 1,612 | 10,984 |
CSS | 16 | 485 | 176 | 4,958 |
PO File | 1 | 316 | 364 | 715 |
PHP code 50% from 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
These items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 258)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 49.77 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 482.00 |
Average method complexity | 6.76 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 258.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 30 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 30 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 250 | |
▷ Static methods | 15 | 6.00% |
▷ Public methods | 243 | 97.20% |
▷ Protected methods | 2 | 0.80% |
▷ Private methods | 5 | 2.00% |
Functions | 18 | |
▷ Named functions | 16 | 88.89% |
▷ Anonymous functions | 2 | 11.11% |
Constants | 7 | |
▷ Global constants | 7 | 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
6 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/cross.png | 0.51KB | 0.38KB | ▼ 24.76% |
admin/images/check.png | 0.43KB | 0.53KB | 0.00% |
admin/images/icon-100X100.png | 0.97KB | 0.57KB | ▼ 41.07% |
admin/images/icon.png | 9.15KB | 0.80KB | ▼ 91.21% |
admin/images/ebay-card.png | 7.09KB | 2.91KB | ▼ 58.98% |