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.00MB] [CPU: ▼2.26ms] Passed 4 tests
Server-side resources used by Best Seller For WooCommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 43.51 ▲4.11 |
Dashboard /wp-admin | 3.31 ▲0.00 | 42.05 ▼4.72 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.50 ▼3.89 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 92.45 ▼0.64 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.57 ▲0.23 |
Server storage [IO: ▲1.78MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 105 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Best Seller For WooCommerce
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.65 ▼0.62 | 1.82 ▲0.13 | 39.85 ▼3.50 |
Dashboard /wp-admin | 2,200 ▲12 | 5.80 ▼0.02 | 102.09 ▼2.33 | 37.80 ▼2.31 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.96 ▼0.08 | 38.34 ▲1.89 | 31.54 ▼2.97 |
Add New Post /wp-admin/post-new.php | 1,542 ▲4 | 18.50 ▲0.35 | 636.54 ▼9.02 | 62.10 ▲9.57 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.22 ▼0.00 | 93.22 ▼6.87 | 39.98 ▼2.59 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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 take a closer look at the following
- 16× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'GPLSCore\\GPLS_PLUGIN_WOBTSLR\\Data\\Base\\Data' not found in wp-content/plugins/best-seller-for-woocommerce/includes/Data/Base/OptionsData.php:7
- > PHP Fatal error
Uncaught Error: Class 'GPLSCore\\GPLS_PLUGIN_WOBTSLR\\Backgrounds\\Base\\AsyncRequest' not found in wp-content/plugins/best-seller-for-woocommerce/includes/Backgrounds/Base/BackgroundProcess.php:9
- > PHP Fatal error
Uncaught Error: Class 'GPLSCore\\GPLS_PLUGIN_WOBTSLR\\Backgrounds\\AutoBackgrounds\\AutoBackgroundProcess' not found in wp-content/plugins/best-seller-for-woocommerce/includes/Backgrounds/AutoBackgrounds/BestSellersBackground.php:13
- > PHP Fatal error
Uncaught Error: Class 'GPLSCore\\GPLS_PLUGIN_WOBTSLR\\Base' not found in wp-content/plugins/best-seller-for-woocommerce/includes/Settings/SettingsFields/Field.php:11
- > PHP Fatal error
Uncaught Error: Class 'GPLSCore\\GPLS_PLUGIN_WOBTSLR\\Base' not found in wp-content/plugins/best-seller-for-woocommerce/includes/BestSellerProduct.php:10
- > PHP Fatal error
Uncaught Error: Class 'GPLSCore\\GPLS_PLUGIN_WOBTSLR\\Settings\\SettingsBase\\Settings' not found in wp-content/plugins/best-seller-for-woocommerce/includes/Settings/MainSettings.php:11
- > PHP Fatal error
Uncaught Error: Class 'GPLSCore\\GPLS_PLUGIN_WOBTSLR\\Backgrounds\\Base\\BackgroundProcess' not found in wp-content/plugins/best-seller-for-woocommerce/includes/Backgrounds/AutoBackgrounds/AutoBackgroundProcess.php:9
- > PHP Fatal error
Uncaught Error: Class 'GPLSCore\\GPLS_PLUGIN_WOBTSLR\\Base' not found in wp-content/plugins/best-seller-for-woocommerce/includes/BestSellerShortcodes.php:11
- > PHP Fatal error
Uncaught Error: Class 'GPLSCore\\GPLS_PLUGIN_WOBTSLR\\Base' not found in wp-content/plugins/best-seller-for-woocommerce/includes/BestSellerQueries.php:7
- > PHP Fatal error
Uncaught Error: Class 'GPLSCore\\GPLS_PLUGIN_WOBTSLR\\Base' not found in wp-content/plugins/best-seller-for-woocommerce/includes/Backgrounds/Base/AsyncRequest.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6 in best-seller-for-woocommerce/assets to your readme.txt
best-seller-for-woocommerce/gpls-wobtslr-woo-best-seller.php 92% from 13 tests
Analyzing the main PHP file in "Best Seller For WooCommerce" version 1.0.4
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("best-seller-for-woocommerce.php" instead of "gpls-wobtslr-woo-best-seller.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin5,163 lines of code in 65 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 52 | 873 | 2,677 | 5,131 |
JavaScript | 7 | 2 | 6 | 26 |
CSS | 6 | 0 | 5 | 6 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 16.70 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 0 | |
Traits | 6 | |
Classes | 34 | |
▷ Abstract classes | 8 | 23.53% |
▷ Concrete classes | 26 | 76.47% |
▷ Final classes | 2 | 7.69% |
Methods | 364 | |
▷ Static methods | 93 | 25.55% |
▷ Public methods | 227 | 62.36% |
▷ Protected methods | 80 | 21.98% |
▷ Private methods | 57 | 15.66% |
Functions | 10 | |
▷ Named functions | 7 | 70.00% |
▷ Anonymous functions | 3 | 30.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
24 PNG files occupy 0.23MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icons/best-seller-icon-8.png | 3.97KB | 2.08KB | ▼ 47.66% |
assets/images/text-badge.png | 1.97KB | 1.51KB | ▼ 23.23% |
includes/Core/assets/images/wp-watermark-pdf.png | 30.70KB | 10.89KB | ▼ 64.53% |
includes/Core/assets/dist/images/logo-icon-sm.png | 0.62KB | 0.72KB | 0.00% |
includes/Core/assets/images/wp-watermark-images.png | 38.45KB | 14.82KB | ▼ 61.45% |