Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.81MB] [CPU: ▼35.71ms] Passed 4 tests
This is a short check of server-side resources used by Featured Users
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 42.05 ▲5.69 |
Dashboard /wp-admin | 3.14 ▼0.20 | 23.49 ▼35.68 |
Posts /wp-admin/edit.php | 3.14 ▼0.21 | 24.42 ▼23.20 |
Add New Post /wp-admin/post-new.php | 3.14 ▼2.74 | 23.37 ▼71.65 |
Media Library /wp-admin/upload.php | 3.14 ▼0.09 | 24.15 ▼12.30 |
Featured Users /wp-admin/options-general.php?page=rd-featured-users | 3.14 | 25.25 |
Server storage [IO: ▲0.11MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_rd_featured_users_widget |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Featured Users
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.35 ▼0.23 | 1.73 ▲0.14 | 48.33 ▲5.45 |
Dashboard /wp-admin | 2,199 ▲22 | 5.61 ▲0.01 | 90.65 ▲3.84 | 40.74 ▲0.81 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.02 ▲0.02 | 33.85 ▼2.75 | 37.38 ▲0.10 |
Add New Post /wp-admin/post-new.php | 1,529 ▼4 | 23.91 ▲0.86 | 687.97 ▲1.64 | 47.95 ▼6.80 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.23 ▲0.04 | 93.02 ▲0.87 | 39.28 ▼5.12 |
Featured Users /wp-admin/options-general.php?page=rd-featured-users | 1,470 | 2.01 | 23.57 | 30.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/featured-users-wordpress-plugin/inc/settings.php+399
Trying to access array offset on value of type bool
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_rd_featured_users_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=rd-featured-users
- > Notice in wp-content/plugins/featured-users-wordpress-plugin/inc/settings.php+167
Trying to access array offset on value of type bool
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=rd-featured-users
- > Warning in wp-content/plugins/featured-users-wordpress-plugin/inc/settings.php+173
in_array() expects parameter 2 to be array, null given
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
Almost there! Just fix the following items
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'rdFeaturedUsers' not found in wp-content/plugins/featured-users-wordpress-plugin/inc/settings.php:22
- > PHP Fatal error
Uncaught Error: Class 'rdFeaturedUsers' not found in wp-content/plugins/featured-users-wordpress-plugin/inc/shortcode.php:26
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/featured-users-wordpress-plugin/inc/widget.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/featured-users-wordpress-plugin/js_featured_users.php:140
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: No descriptions were found for these screenshots #2, #3, #4 in featured-users-wordpress-plugin/assets to your readme.txt
featured-users-wordpress-plugin/js_featured_users.php 92% from 13 tests
The entry point to "Featured Users" version 2.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("featured-users-wordpress-plugin.php" instead of "js_featured_users.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin607 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 273 | 493 | 542 |
Markdown | 1 | 19 | 0 | 34 |
JavaScript | 1 | 20 | 52 | 27 |
CSS | 1 | 3 | 14 | 4 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 17.20 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 3.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 1 | 3.33% |
▷ Public methods | 27 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 10.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.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
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 |
assets/star.png | 2.47KB | 1.54KB | ▼ 37.57% |