Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲3.05MB] [CPU: ▲12.98ms] Passed 4 tests
Server-side resources used by WP-Lister Lite for eBay
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.32 ▲1.86 | 44.97 ▲2.10 |
Dashboard /wp-admin | 6.77 ▲3.42 | 67.76 ▲12.17 |
Posts /wp-admin/edit.php | 6.83 ▲3.46 | 74.33 ▲26.81 |
Add New Post /wp-admin/post-new.php | 9.85 ▲3.96 | 116.80 ▲10.82 |
Media Library /wp-admin/upload.php | 6.69 ▲3.46 | 64.19 ▲30.16 |
Server storage [IO: ▲18.83MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2,079 new files
Database: no new tables, 23 new options
New WordPress options |
---|
can_compress_scripts |
wplister_setup_next_step |
wplister_log_to_db |
wplister_is_network_activated |
wplister_ebay_site_id |
wplister_db_version |
theysaidso_admin_options |
wplister_paypal_email |
wplister_wc2_gallery_fallback |
wple_announcements |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for WP-Lister Lite for eBay
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,982 ▲221 | 14.39 ▼0.26 | 1.82 ▼0.27 | 42.30 ▼0.66 |
Dashboard /wp-admin | 2,301 ▲121 | 5.62 ▼0.02 | 97.91 ▲11.72 | 71.20 ▲26.76 |
Posts /wp-admin/edit.php | 2,217 ▲117 | 2.06 ▲0.05 | 41.62 ▲5.14 | 38.00 ▲2.93 |
Add New Post /wp-admin/post-new.php | 1,651 ▲122 | 23.44 ▲0.39 | 733.85 ▲146.65 | 35.28 ▼21.57 |
Media Library /wp-admin/upload.php | 1,520 ▲120 | 4.22 ▲0.05 | 95.12 ▼0.48 | 82.05 ▲39.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 23 options in the database
- wplister_cron_auctions
- wplister_ebay_site_id
- theysaidso_admin_options
- can_compress_scripts
- wplister_db_version
- wplister_uninstall
- wple_announcements
- widget_recent-comments
- wplister_setup_next_step
- wplister_log_level
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 15× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
- > /wp-content/plugins/wp-lister-for-ebay/views/template/gallery_slider.php
- > /wp-content/plugins/wp-lister-for-ebay/templates/default/header.php
- > /wp-content/plugins/wp-lister-for-ebay/views/template/gallery.php
- > /wp-content/plugins/wp-lister-for-ebay/views/transaction_details.php
- > /wp-content/plugins/wp-lister-for-ebay/templates/default-with-gallery/header.php
- > /wp-content/plugins/wp-lister-for-ebay/views/grid_page.php
- > /wp-content/plugins/wp-lister-for-ebay/templates/default/gallery.php
- > /wp-content/plugins/wp-lister-for-ebay/views/message_details.php
- > /wp-content/plugins/wp-lister-for-ebay/views/template/thumbnails_nojs.php
- > /wp-content/plugins/wp-lister-for-ebay/views/invoice_template.php
- 451× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: wpl_ebay_order in wp-content/plugins/wp-lister-for-ebay/views/order_details.php on line 26
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-lister-for-ebay/includes/ebay-rest-api/test/Model/CategorySuggestionTest.php:40
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/wp-lister-for-ebay/templates/default/gallery_slider.php on line 3
- > PHP Fatal error
Uncaught Error: Interface 'Swagger\\Client\\Model\\ModelInterface' not found in wp-content/plugins/wp-lister-for-ebay/includes/ebay-rest-api/lib/Model/GetCategoriesAspectResponse.php:42
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-lister-for-ebay/includes/ebay-rest-api/test/Model/ReturnPolicyDetailsTest.php:40
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/wp-lister-for-ebay/classes/table/TransactionsTable.php on line 9
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/wp-lister-for-ebay/includes/ebay-rest-api/vendor/psr/http-message/src/ServerRequestInterface.php:45
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Psr7\\Request' not found in wp-content/plugins/wp-lister-for-ebay/includes/ebay-rest-api/vendor/guzzlehttp/psr7/src/ServerRequest.php:25
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-lister-for-ebay/includes/ebay-rest-api/test/Model/ReturnPolicyResponseTest.php:40
- > PHP Notice
Undefined variable: images in wp-content/plugins/wp-lister-for-ebay/views/template/thumbnails_nojs.php on line 2
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: products, woocommerce, ebay, export
wp-lister-for-ebay/wp-lister.php 85% from 13 tests
The main PHP file in "WP-Lister Lite for eBay" ver. 3.5.4 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-lister-for-ebay.php" instead of "wp-lister.php")
- Requires at least: Required version must match the one declared in readme.txt ("4.2" instead of "6.0.0")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected360,421 lines of code in 1,964 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,748 | 36,462 | 87,269 | 198,940 |
JavaScript | 97 | 23,125 | 17,974 | 113,475 |
PO File | 12 | 15,466 | 37,474 | 37,418 |
Markdown | 62 | 1,685 | 0 | 4,899 |
CSS | 15 | 265 | 183 | 2,792 |
HTML | 7 | 158 | 0 | 1,137 |
JSON | 11 | 0 | 0 | 1,095 |
Sass | 1 | 9 | 0 | 465 |
YAML | 6 | 20 | 3 | 98 |
Bourne Shell | 1 | 14 | 8 | 38 |
Vuejs Component | 1 | 2 | 0 | 25 |
XML | 1 | 1 | 0 | 20 |
Dockerfile | 1 | 8 | 0 | 10 |
make | 1 | 4 | 0 | 9 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 7.01 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 604.00 |
Average method complexity | 1.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 20 | |
Interfaces | 20 | |
Traits | 2 | |
Classes | 1,646 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1,646 | 100.00% |
▷ Final classes | 28 | 1.70% |
Methods | 13,936 | |
▷ Static methods | 726 | 5.21% |
▷ Public methods | 13,640 | 97.88% |
▷ Protected methods | 68 | 0.49% |
▷ Private methods | 228 | 1.64% |
Functions | 306 | |
▷ Named functions | 111 | 36.27% |
▷ Anonymous functions | 195 | 63.73% |
Constants | 4,406 | |
▷ Global constants | 119 | 2.70% |
▷ Class constants | 4,287 | 97.30% |
▷ Public constants | 4,287 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
67 compressed PNG files occupy 0.18MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
js/jqueryFileTree/images/application.png | 0.45KB | 0.52KB | 0.00% |
css/smoothness/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/smoothness/images/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
css/smoothness/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/smoothness/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |