Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.61MB] [CPU: ▼1.31ms] Passed 4 tests
This is a short check of server-side resources used by User Post Collections
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.29 | 39.12 ▼1.08 |
Dashboard /wp-admin | 4.00 ▲0.70 | 51.45 ▲1.76 |
Posts /wp-admin/edit.php | 4.12 ▲0.76 | 55.40 ▼0.62 |
Add New Post /wp-admin/post-new.php | 6.68 ▲0.79 | 98.71 ▼5.29 |
Media Library /wp-admin/upload.php | 3.92 ▲0.69 | 43.21 ▲7.63 |
Settings /wp-admin/admin.php?page=mg_upc_settings | 3.89 | 42.84 |
User Post Lists /wp-admin/admin.php?page=user-post-list | 3.87 | 36.02 |
Server storage [IO: ▲0.60MB] [DB: ▲0.08MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 74 new files
Database: 3 new tables, 29 new options
New tables |
---|
wp_upc_lists |
wp_upc_items |
wp_upc_votes |
New WordPress options |
---|
mg_upc_share_buttons |
mg_upc_button_position |
db_upgraded |
mg_upc_single_page |
mg_upc_type_vote |
mg_upc_type_simple |
mg_upc_texts |
mg_upc_type_numbered |
mg_upc_type_bookmarks |
mg_upc_store_vote_anonymize_ip |
... |
Browser metrics Passed 4 tests
User Post Collections: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,964 ▲193 | 13.76 ▼0.61 | 17.22 ▲15.41 | 39.47 ▼0.90 |
Dashboard /wp-admin | 2,230 ▲52 | 5.75 ▲0.04 | 96.40 ▼5.10 | 42.40 ▼6.92 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 2.08 ▲0.05 | 41.77 ▲4.08 | 33.91 ▼4.35 |
Add New Post /wp-admin/post-new.php | 1,554 ▲13 | 23.42 ▲5.30 | 671.16 ▲45.32 | 59.13 ▼1.68 |
Media Library /wp-admin/upload.php | 1,435 ▲38 | 4.26 ▲0.05 | 111.14 ▲5.04 | 46.18 ▼1.28 |
Settings /wp-admin/admin.php?page=mg_upc_settings | 2,668 | 2.01 | 35.19 | 30.15 |
User Post Lists /wp-admin/admin.php?page=user-post-list | 955 | 2.17 | 35.38 | 30.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie tables detected upon uninstall: 3 tables
- wp_upc_votes
- wp_upc_lists
- wp_upc_items
- This plugin does not fully uninstall, leaving 29 options in the database
- mg_upc_flush_rewrite
- theysaidso_admin_options
- can_compress_scripts
- mg_upc_purge_on_uninstall
- mg_upc_ajax_load
- widget_recent-posts
- mg_upc_post_stats
- mg_upc_single_page_mode
- mg_upc_single_title
- mg_upc_type_favorites
- ...
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/user-post-collections/includes/mg-upc-settings-api.php
- > /wp-content/plugins/user-post-collections/includes/admin-notice-helper/admin-notice-helper.php
- > /wp-content/plugins/user-post-collections/user-post-collections.php
- 32× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'MG_UPC_Module' not found in wp-content/plugins/user-post-collections/classes/mg-upc-settings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-post-collections/includes/template-hooks.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/user-post-collections/templates/single-mg-upc/item/image.php:13
- > PHP Warning
Use of undefined constant MG_UPC_REQUIRED_WP_VERSION - assumed 'MG_UPC_REQUIRED_WP_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/user-post-collections/templates/requirements-error.php on line 14
- > PHP Fatal error
Uncaught Error: Call to undefined function mg_upc_list_check_support() in wp-content/plugins/user-post-collections/templates/single-mg-upc/item/actions/add-to-cart.php:12
- > PHP Fatal error
Uncaught Error: Class 'MG_UPC_Module' not found in wp-content/plugins/user-post-collections/controllers/mg-upc-buttons.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/user-post-collections/templates/single-mg-upc/item/position-number.php:13
- > PHP Fatal error
Uncaught Error: Class 'MG_UPC_Module' not found in wp-content/plugins/user-post-collections/controllers/mg-list-page-alt.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/user-post-collections/templates/single-mg-upc/sharing.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/user-post-collections/templates/shortcode-404.php:8
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
- > GET request to /wp-admin/admin.php?page=mg_upc_settings
- > Javascript (severe) in unknown
/wp-content/plugins/user-post-collections/javascript/mg-upc-client/dist/admin.js?ver=0.8.32 0:8256 Uncaught TypeError: Cannot read properties of null (reading '__k')
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: user lists, post collections, woocommerce wishlist
user-post-collections/user-post-collections.php Passed 13 tests
The entry point to "User Post Collections" version 0.8.32 is a PHP file that has certain tags in its header comment area
46 characters long description:
Allows users to create their post collections.
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
Everything looks great! No dangerous files found in this plugin9,648 lines of code in 68 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 59 | 1,759 | 2,737 | 9,299 |
JavaScript | 4 | 14 | 15 | 184 |
CSS | 3 | 11 | 0 | 119 |
SVG | 1 | 0 | 0 | 27 |
Markdown | 1 | 7 | 0 | 19 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 44.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 216.00 |
Average method complexity | 3.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 1 | 3.85% |
▷ Concrete classes | 25 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 368 | |
▷ Static methods | 46 | 12.50% |
▷ Public methods | 330 | 89.67% |
▷ Protected methods | 9 | 2.45% |
▷ Private methods | 29 | 7.88% |
Functions | 67 | |
▷ Named functions | 35 | 52.24% |
▷ Anonymous functions | 32 | 47.76% |
Constants | 6 | |
▷ Global constants | 4 | 66.67% |
▷ Class constants | 2 | 33.33% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/blank.png | 0.27KB | 0.10KB | ▼ 61.68% |