Benchmarks
Plugin footprint 65% 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: ▲5.33MB] [CPU: ▲21.00ms] 75% from 4 tests
Analyzing server-side resources used by Featured Products First for WooCommerce - A Extension of WooCommerce (WooCommerce Addon Plugin)
It is recommended to improve the following
- Extra RAM: The extra memory usage should kept under 5MB (currently 5.33MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.20 ▲5.74 | 58.76 ▲20.19 |
Dashboard /wp-admin | 9.22 ▲5.91 | 70.10 ▲18.19 |
Posts /wp-admin/edit.php | 9.22 ▲5.86 | 66.87 ▲21.52 |
Add New Post /wp-admin/post-new.php | 9.70 ▲3.81 | 107.51 ▲24.09 |
Media Library /wp-admin/upload.php | 9.22 ▲5.99 | 69.87 ▲34.54 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 9.22 | 63.91 |
Server storage [IO: ▲3.25MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 199 new files
Database: no new tables, 9 new options
New WordPress options |
---|
fs_debug_mode |
widget_theysaidso_widget |
can_compress_scripts |
fs_accounts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
fs_active_plugins |
Browser metrics Passed 4 tests
A check of browser resources used by Featured Products First for WooCommerce - A Extension of WooCommerce (WooCommerce Addon Plugin)
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲45 | 14.34 ▼0.03 | 1.49 ▼0.21 | 29.66 ▼18.20 |
Dashboard /wp-admin | 2,215 ▲38 | 5.61 ▲0.11 | 97.88 ▲8.38 | 44.79 ▲4.39 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 1.99 ▲0.05 | 34.78 ▼1.51 | 34.07 ▼6.97 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.01 ▲0.01 | 682.43 ▲17.59 | 60.90 ▼3.18 |
Media Library /wp-admin/upload.php | 1,414 ▲17 | 4.22 ▼0.00 | 104.07 ▼8.16 | 48.27 ▲0.78 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,085 | 1.69 | 28.80 | 32.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/featured-products-first-for-woocommerce/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie WordPress options detected upon uninstall: 9 options
- fs_accounts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- fs_debug_mode
- fs_active_plugins
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 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 SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: woocommerce, product, featured
featured-products-first-for-woocommerce/featured-products-first-for-woocommerce.php 92% from 13 tests
This is the main PHP file of "Featured Products First for WooCommerce - A Extension of WooCommerce (WooCommerce Addon Plugin)" version 1.9.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("4.0" instead of "4.8.1")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected34,861 lines of code in 149 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 128 | 8,088 | 17,534 | 34,255 |
JavaScript | 4 | 36 | 60 | 214 |
Markdown | 1 | 68 | 0 | 214 |
PO File | 1 | 40 | 44 | 115 |
JSON | 2 | 0 | 0 | 50 |
CSS | 13 | 0 | 0 | 13 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 86.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 53 | |
▷ Abstract classes | 2 | 3.77% |
▷ Concrete classes | 51 | 96.23% |
▷ Final classes | 0 | 0.00% |
Methods | 1,292 | |
▷ Static methods | 197 | 15.25% |
▷ Public methods | 894 | 69.20% |
▷ Protected methods | 17 | 1.32% |
▷ Private methods | 381 | 29.49% |
Functions | 101 | |
▷ Named functions | 101 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 151 | |
▷ Global constants | 104 | 68.87% |
▷ Class constants | 47 | 31.13% |
▷ Public constants | 47 | 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
3 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
assets/images/settings.png | 48.26KB | 49.18KB | 0.00% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |