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.10MB] [CPU: ▼1.58ms] Passed 4 tests
A check of server-side resources used by Reseller Store
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 43.03 ▲4.55 |
Dashboard /wp-admin | 3.40 ▲0.09 | 49.93 ▼0.07 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 54.24 ▲6.29 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 87.35 ▼17.08 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 41.69 ▲10.05 |
Setup /wp-admin/edit.php?post_type=reseller_product&page=reseller-store-setup | 2.46 | 20.46 |
Tags /wp-admin/edit-tags.php?taxonomy=reseller_product_tag&post_type=reseller_product | 2.46 | 20.11 |
Settings /wp-admin/edit.php?post_type=reseller_product&page=rstore_settings | 2.46 | 19.82 |
All Products /wp-admin/edit.php?post_type=reseller_product | 2.46 | 19.29 |
Categories /wp-admin/edit-tags.php?taxonomy=reseller_product_category&post_type=reseller_product | 2.46 | 19.86 |
Server storage [IO: ▲0.81MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 134 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Reseller Store
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲101 | 13.62 ▼1.14 | 4.29 ▲2.28 | 41.76 ▼6.84 |
Dashboard /wp-admin | 2,245 ▲54 | 5.85 ▼0.06 | 100.41 ▼0.15 | 39.99 ▼2.94 |
Posts /wp-admin/edit.php | 2,125 ▲33 | 2.04 ▼0.01 | 35.42 ▼6.04 | 32.99 ▼3.41 |
Add New Post /wp-admin/post-new.php | 1,564 ▲45 | 23.32 ▲0.17 | 668.68 ▲17.62 | 49.31 ▼6.11 |
Media Library /wp-admin/upload.php | 1,427 ▲39 | 4.21 ▲0.05 | 98.26 ▼1.40 | 41.75 ▼3.19 |
Setup /wp-admin/edit.php?post_type=reseller_product&page=reseller-store-setup | 912 | 2.03 | 29.03 | 34.77 |
Tags /wp-admin/edit-tags.php?taxonomy=reseller_product_tag&post_type=reseller_product | 915 | 2.03 | 25.07 | 31.61 |
Settings /wp-admin/edit.php?post_type=reseller_product&page=rstore_settings | 909 | 2.07 | 24.25 | 30.80 |
All Products /wp-admin/edit.php?post_type=reseller_product | 909 | 2.04 | 24.41 | 29.95 |
Categories /wp-admin/edit-tags.php?taxonomy=reseller_product_category&post_type=reseller_product | 915 | 2.07 | 24.63 | 31.51 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
Please fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/reseller-store/includes/butterbean/templates/control-plain-text.php
- > /wp-content/plugins/reseller-store/includes/butterbean/templates/control-anchor.php
- 16× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: settings in wp-content/plugins/reseller-store/includes/modules/includes/frontend.php on line 33
- > PHP Notice
Trying to get property 'type' of non-object in wp-content/plugins/reseller-store/includes/modules/includes/frontend.php on line 35
- > PHP Notice
Undefined variable: settings in wp-content/plugins/reseller-store/includes/modules/includes/frontend.php on line 35
- > PHP Notice
Undefined variable: settings in wp-content/plugins/reseller-store/includes/modules/includes/frontend.php on line 53
- > PHP Notice
Trying to get property 'type' of non-object in wp-content/plugins/reseller-store/includes/modules/includes/frontend.php on line 41
- > PHP Notice
Trying to get property 'type' of non-object in wp-content/plugins/reseller-store/includes/modules/includes/frontend.php on line 59
- > PHP Notice
Undefined variable: id in wp-content/plugins/reseller-store/includes/modules/includes/frontend.php on line 23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/reseller-store/includes/functions/product-functions.php:223
- > PHP Notice
Undefined variable: settings in wp-content/plugins/reseller-store/includes/modules/includes/frontend.php on line 47
- > PHP Notice
Undefined variable: settings in wp-content/plugins/reseller-store/includes/modules/includes/frontend.php on line 65
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
8 plugin tags: storefront, posts, program, reseller, ecommerce...
reseller-store/reseller-store.php Passed 13 tests
The main file in "Reseller Store" v. 2.2.14 serves as a complement to information provided in readme.txt and as the entry point to the plugin
63 characters long description:
Sell hosting, domains, and more right from your WordPress site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin6,279 lines of code in 86 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 58 | 2,051 | 3,079 | 5,103 |
CSS | 12 | 40 | 10 | 680 |
JavaScript | 14 | 117 | 26 | 494 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 10.46 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 3.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 0 | |
Traits | 3 | |
Classes | 45 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 45 | 100.00% |
▷ Final classes | 32 | 71.11% |
Methods | 195 | |
▷ Static methods | 23 | 11.79% |
▷ Public methods | 159 | 81.54% |
▷ Protected methods | 2 | 1.03% |
▷ Private methods | 34 | 17.44% |
Functions | 65 | |
▷ Named functions | 29 | 44.62% |
▷ Anonymous functions | 36 | 55.38% |
Constants | 34 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 34 | 100.00% |
▷ Public constants | 34 | 100.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
No PNG images were found in this plugin