Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼1.77ms] Passed 4 tests
Analyzing server-side resources used by Bulk Product Selling
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 37.93 ▼3.37 |
Dashboard /wp-admin | 3.37 ▲0.07 | 45.93 ▼2.09 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 48.98 ▲2.80 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 96.68 ▼1.77 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 34.34 ▲0.17 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Bulk Product Selling
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲88 | 13.23 ▼1.18 | 5.06 ▲3.19 | 42.17 ▼5.04 |
Dashboard /wp-admin | 2,229 ▲44 | 5.80 ▼0.02 | 97.51 ▼2.47 | 41.54 ▼6.95 |
Posts /wp-admin/edit.php | 2,114 ▲25 | 2.07 ▲0.02 | 39.91 ▲0.59 | 39.90 ▲5.81 |
Add New Post /wp-admin/post-new.php | 1,560 ▲27 | 18.21 ▼5.26 | 627.46 ▼39.97 | 57.26 ▼4.59 |
Media Library /wp-admin/upload.php | 1,414 ▲23 | 4.21 ▲0.01 | 94.31 ▼4.43 | 43.60 ▲0.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/bulk-products-selling/includes/Admin/views/footer-script.php
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to a member function get_items() on null in wp-content/plugins/bulk-products-selling/includes/Frontend/views/included-products.php:4
- > PHP Notice
Undefined variable: is_bulk in wp-content/plugins/bulk-products-selling/includes/Admin/views/footer-script.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/bulk-products-selling/includes/Admin/views/plugin-notice.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/bulk-products-selling/includes/Admin/views/tab-content.php:4
- > PHP Notice
Undefined variable: order in wp-content/plugins/bulk-products-selling/includes/Frontend/views/included-products.php on line 4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% 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
Attributes that need to be fixed:
- Donate link: Please fix this invalid URI: ""
bulk-products-selling/bulk-products-selling.php 85% from 13 tests
The main PHP script in "Bulk Product Selling" version 1.0.2 is automatically included on every request by WordPress
It is important to fix the following:
- Domain Path: The domain path folder does not exist ("/languages")
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,043 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 303 | 433 | 1,035 |
JSON | 1 | 0 | 0 | 5 |
CSS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 8.65 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 16 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 16 | 100.00% |
▷ Final classes | 1 | 6.25% |
Methods | 89 | |
▷ Static methods | 14 | 15.73% |
▷ Public methods | 85 | 95.51% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 4.49% |
Functions | 6 | |
▷ Named functions | 3 | 50.00% |
▷ Anonymous functions | 3 | 50.00% |
Constants | 7 | |
▷ Global constants | 6 | 85.71% |
▷ Class constants | 1 | 14.29% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin