Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼1.37ms] Passed 4 tests
An overview of server-side resources used by Sellbery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 46.30 ▲6.61 |
Dashboard /wp-admin | 3.36 ▲0.05 | 52.53 ▼2.04 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 52.45 ▲2.88 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 88.60 ▼10.36 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 43.09 ▲4.04 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Sellbery
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.42 ▲0.07 | 1.73 ▲0.18 | 46.16 ▲4.77 |
Dashboard /wp-admin | 2,202 ▲22 | 5.58 ▼0.11 | 83.30 ▼2.42 | 39.57 ▼7.24 |
Posts /wp-admin/edit.php | 2,107 ▲10 | 2.00 ▲0.02 | 35.87 ▼0.19 | 36.02 ▼2.76 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 23.25 ▲0.16 | 653.08 ▼25.11 | 55.48 ▼18.73 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.15 ▲0.02 | 107.51 ▼6.54 | 44.81 ▼3.25 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/sellbery/admin/wc-sellbery-settings/sellbery-fields.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/sellbery/admin/wc-sellbery-settings/sellbery-product.php:3
- > PHP Fatal error
Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/sellbery/admin/wc-sellbery-settings/wc-sellbery-integration.php:2
- > 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 Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: woocommerce, e-commerce, amazon, store, ebay
sellbery/SellberyWooCommerce.php 85% from 13 tests
The main file in "Sellbery" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 226 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("sellbery.php" instead of "SellberyWooCommerce.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin730 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 147 | 403 | 591 |
JavaScript | 1 | 7 | 28 | 111 |
Markdown | 1 | 17 | 0 | 28 |
CSS | 1 | 0 | 4 | 0 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 10.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 1 | 2.63% |
▷ Public methods | 31 | 81.58% |
▷ Protected methods | 1 | 2.63% |
▷ Private methods | 6 | 15.79% |
Functions | 4 | |
▷ Named functions | 1 | 25.00% |
▷ Anonymous functions | 3 | 75.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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin