Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲1.14MB] [CPU: ▲328.46ms] 50% from 4 tests
Server-side resources used by WordPress Wishlist
Please have a look at the following items
- CPU: Total CPU usage must kept under 500.00ms (currently 504.75ms on /wp-admin/post-new.php?post_type=rox_wishlist)
- Extra CPU: Try to keep extra CPU usage under 200.00ms (currently 328.46ms on /wp-admin/admin.php?page=wp_wishlist)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.30 ▲0.83 | 54.27 ▲12.79 |
Dashboard /wp-admin | 4.55 ▲1.24 | 505.80 ▲452.97 |
Posts /wp-admin/edit.php | 4.61 ▲1.25 | 497.83 ▲444.95 |
Add New Post /wp-admin/post-new.php | 7.14 ▲1.25 | 528.59 ▲419.82 |
Media Library /wp-admin/upload.php | 4.45 ▲1.22 | 476.93 ▲436.29 |
Rox Plugins /wp-admin/admin.php?page=rox_plugins | 4.65 | 493.79 |
Categories /wp-admin/edit-tags.php?taxonomy=rox_wishlist_cat&post_type=rox_wishlist | 4.50 | 484.28 |
Add New /wp-admin/post-new.php?post_type=rox_wishlist | 4.64 | 504.75 |
Tags /wp-admin/edit-tags.php?taxonomy=rox_wishlist_tag&post_type=rox_wishlist | 4.47 | 489.13 |
All Lists /wp-admin/edit.php?post_type=rox_wishlist | 4.55 | 476.35 |
Wishtlist /wp-admin/admin.php?page=wp_wishlist | 4.45 | 474.47 |
Server storage [IO: ▲0.99MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 97 new files
Database: 2 new tables, 14 new options
New tables |
---|
wp_rox_wishlist_contributors |
wp_rox_wishlist_items |
New WordPress options |
---|
wp_wishlist_general |
rox_wishlist_cat_children |
rox_wp_wishlist_permalinks |
__rox_wpwl_default_list_cat |
widget_recent-posts |
db_upgraded |
wp_wishlist_advanced |
rox_wp_wishlist_installed |
widget_theysaidso_widget |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WordPress Wishlist
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,325 ▲564 | 15.18 ▲0.77 | 7.90 ▲5.97 | 37.65 ▼5.08 |
Dashboard /wp-admin | 2,507 ▲330 | 6.43 ▲0.77 | 115.82 ▲26.61 | 93.04 ▲52.35 |
Posts /wp-admin/edit.php | 2,463 ▲366 | 3.61 ▲1.65 | 52.25 ▲14.57 | 55.10 ▲17.50 |
Add New Post /wp-admin/post-new.php | 1,695 ▲169 | 23.51 ▼0.20 | 688.57 ▼31.41 | 35.25 ▼33.12 |
Media Library /wp-admin/upload.php | 1,590 ▲190 | 4.46 ▲0.27 | 85.06 ▼12.97 | 81.86 ▲37.94 |
Rox Plugins /wp-admin/admin.php?page=rox_plugins | 1,701 | 3.61 | 46.20 | 61.67 |
Categories /wp-admin/edit-tags.php?taxonomy=rox_wishlist_cat&post_type=rox_wishlist | 1,735 | 3.45 | 47.84 | 81.07 |
Add New /wp-admin/post-new.php?post_type=rox_wishlist | 2,685 | 8.07 | 173.96 | 135.20 |
Tags /wp-admin/edit-tags.php?taxonomy=rox_wishlist_tag&post_type=rox_wishlist | 1,614 | 3.44 | 46.44 | 83.82 |
All Lists /wp-admin/edit.php?post_type=rox_wishlist | 1,437 | 3.62 | 48.47 | 66.84 |
Wishtlist /wp-admin/admin.php?page=wp_wishlist | 1,410 | 3.79 | 56.98 | 64.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'deactivation' not found or invalid function name
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_rox_wishlist_contributors
- wp_rox_wishlist_items
- The uninstall procedure has failed, leaving 14 options in the database
- rox_wp_wishlist_installed
- can_compress_scripts
- wp_wishlist_advanced
- __rox_wpwl_default_list_cat
- current_theme_supports_wp_wishlist
- db_upgraded
- wp_wishlist_queue_flush_rewrite_rules
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- ...
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Interface 'Hashids\\Math\\MathInterface' not found in wp-content/plugins/wp-wishlist/vendor/hashids/hashids/src/Math/Bc.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-wishlist/includes/class.RoxWPWLAdmin.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-wishlist/includes/class.RoxWPWLPostTypes.php:23
- > PHP Fatal error
Uncaught Error: Interface 'Hashids\\Math\\MathInterface' not found in wp-content/plugins/wp-wishlist/vendor/hashids/hashids/src/Math/Gmp.php:21
- > PHP Fatal error
Uncaught Error: Interface 'Hashids\\HashidsInterface' not found in wp-content/plugins/wp-wishlist/vendor/hashids/hashids/src/Hashids.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add images for these screenshots: #1 (screenshot-1), #2 (screenshot-2)
wp-wishlist/wp-wishlist.php 85% from 13 tests
The main PHP script in "WordPress Wishlist" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
- Domain Path: The domain path folder was not found ("/languages/")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected21,861 lines of code in 85 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 5 | 0 | 0 | 12,814 |
PHP | 42 | 699 | 2,526 | 5,168 |
Sass | 15 | 31 | 6 | 1,321 |
CSS | 4 | 46 | 35 | 1,255 |
JavaScript | 7 | 78 | 271 | 1,076 |
SVG | 11 | 0 | 0 | 216 |
Ruby | 1 | 2 | 9 | 11 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 23.96 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 76.00 |
Average method complexity | 3.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 22 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 22 | 100.00% |
▷ Final classes | 2 | 9.09% |
Methods | 229 | |
▷ Static methods | 85 | 37.12% |
▷ Public methods | 196 | 85.59% |
▷ Protected methods | 11 | 4.80% |
▷ Private methods | 22 | 9.61% |
Functions | 109 | |
▷ Named functions | 100 | 91.74% |
▷ Anonymous functions | 9 | 8.26% |
Constants | 11 | |
▷ Global constants | 9 | 81.82% |
▷ Class constants | 2 | 18.18% |
▷ Public constants | 2 | 100.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
No PNG files were detected