Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- Install procedure had errors
- > User deprecated in wp-includes/functions.php+5453
Function get_page_by_title is deprecated since version 6.2.0! Use WP_Query instead.
Server metrics [RAM: ▲5.00MB] [CPU: ▲23.16ms] 75% from 4 tests
This is a short check of server-side resources used by Premmerce Wishlist for WooCommerce
Please take the time to fix the following items
- Extra RAM: The extra memory usage must be under 5MB (currently 5.00MB on /wp-admin/admin.php?page=freemius)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.85 ▲5.39 | 67.96 ▲25.99 |
Dashboard /wp-admin | 8.87 ▲5.57 | 76.98 ▲30.75 |
Posts /wp-admin/edit.php | 8.87 ▲5.52 | 81.21 ▲26.61 |
Add New Post /wp-admin/post-new.php | 9.43 ▲3.54 | 107.15 ▲9.27 |
Media Library /wp-admin/upload.php | 8.87 ▲5.64 | 71.76 ▲38.70 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.87 | 57.45 |
Server storage [IO: ▲3.29MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 250 new files
Database: 1 new table, 11 new options
New tables |
---|
wp_premmerce_wishlist |
New WordPress options |
---|
fs_accounts |
widget_premmerce_wishlist_widget |
fs_debug_mode |
fs_active_plugins |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
Premmerce Wishlist for WooCommerce: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.22 ▼1.17 | 1.55 ▼0.36 | 29.46 ▼18.77 |
Dashboard /wp-admin | 2,228 ▲40 | 5.81 ▲0.91 | 98.14 ▼14.76 | 41.72 ▼1.73 |
Posts /wp-admin/edit.php | 2,113 ▲24 | 2.02 ▲0.00 | 39.51 ▲0.59 | 38.85 ▲5.78 |
Add New Post /wp-admin/post-new.php | 1,526 ▼7 | 23.15 ▼0.11 | 684.05 ▼0.19 | 57.28 ▲3.82 |
Media Library /wp-admin/upload.php | 1,407 ▲19 | 4.14 ▼0.05 | 98.41 ▼1.88 | 45.35 ▲2.47 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,068 | 2.20 | 24.19 | 28.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/premmerce-woocommerce-wishlist/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie WordPress options detected upon uninstall: 11 options
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- fs_active_plugins
- widget_recent-comments
- widget_recent-posts
- fs_accounts
- db_upgraded
- widget_premmerce_wishlist_widget
- premmerce-wishlist-page-id
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
- 35× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function premmerce_wishlist() in wp-content/plugins/premmerce-woocommerce-wishlist/views/widget/wishlist-widget.php:10
- > PHP Notice
Undefined variable: title in wp-content/plugins/premmerce-woocommerce-wishlist/views/frontend/wishlist-popup.php on line 11
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/premmerce-woocommerce-wishlist/views/frontend/wishlist-page.php on line 16
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/premmerce-woocommerce-wishlist/views/widget/wishlist-widget.php on line 3
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/premmerce-woocommerce-wishlist/src/Admin/WishlistTable.php on line 8
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/premmerce-woocommerce-wishlist/src/Admin/WishlistTable.php on line 8
- > PHP Notice
Undefined variable: wishlists in wp-content/plugins/premmerce-woocommerce-wishlist/views/frontend/wishlist-page.php on line 16
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/premmerce-woocommerce-wishlist/src/Admin/WishlistViewTable.php on line 7
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/premmerce-woocommerce-wishlist/views/frontend/wishlist-popup.php on line 35
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/premmerce-woocommerce-wishlist/src/Admin/WishlistViewTable.php on line 7
- > 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 Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: wishlist, product wishlist, premmerce, e-commerce, woocommerce wishlist...
premmerce-woocommerce-wishlist/premmerce-wishlist.php 77% from 13 tests
The principal PHP file in "Premmerce Wishlist for WooCommerce" v. 1.1.10 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Requires at least: Required version must match the one declared in readme.txt ("4.8" instead of "3.0.0")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("premmerce-woocommerce-wishlist.php" instead of "premmerce-wishlist.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin37,768 lines of code in 202 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 161 | 8,682 | 18,453 | 35,805 |
CSS | 17 | 49 | 8 | 562 |
Markdown | 3 | 170 | 0 | 400 |
JavaScript | 7 | 74 | 101 | 352 |
PO File | 2 | 140 | 180 | 280 |
Sass | 8 | 56 | 1 | 275 |
JSON | 4 | 0 | 0 | 94 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
These items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 72.76 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 65 | |
▷ Abstract classes | 2 | 3.08% |
▷ Concrete classes | 63 | 96.92% |
▷ Final classes | 0 | 0.00% |
Methods | 1,446 | |
▷ Static methods | 219 | 15.15% |
▷ Public methods | 1,017 | 70.33% |
▷ Protected methods | 28 | 1.94% |
▷ Private methods | 401 | 27.73% |
Functions | 108 | |
▷ Named functions | 100 | 92.59% |
▷ Anonymous functions | 8 | 7.41% |
Constants | 155 | |
▷ Global constants | 98 | 63.23% |
▷ Class constants | 57 | 36.77% |
▷ Public constants | 57 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |