Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/elite-members/admin/em-widgets.php+168
Function create_function() is deprecated
Server metrics [RAM: ▼1.81MB] [CPU: ▼56.53ms] Passed 4 tests
This is a short check of server-side resources used by Elite Members
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.18 ▼1.28 | 5.35 ▼31.30 |
Dashboard /wp-admin | 2.20 ▼1.14 | 6.48 ▼51.80 |
Posts /wp-admin/edit.php | 2.20 ▼1.15 | 6.08 ▼39.67 |
Add New Post /wp-admin/post-new.php | 2.20 ▼3.68 | 6.47 ▼103.36 |
Media Library /wp-admin/upload.php | 2.20 ▼1.02 | 6.40 ▼29.73 |
Elite Members /wp-admin/options-general.php?page=em_settings_page | 2.20 | 6.11 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 112 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_elitemembers_widget |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Elite Members
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲168 | 13.74 ▼0.85 | 8.04 ▲6.37 | 41.53 ▲3.49 |
Dashboard /wp-admin | 2,213 ▲22 | 5.84 ▼0.06 | 97.26 ▼3.83 | 36.80 ▼8.85 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.01 ▲0.00 | 34.01 ▼0.70 | 33.99 ▲0.47 |
Add New Post /wp-admin/post-new.php | 1,540 ▲7 | 23.52 ▲0.35 | 595.54 ▼71.99 | 45.32 ▼7.44 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.24 ▲0.04 | 94.65 ▼4.17 | 38.97 ▼9.37 |
Elite Members /wp-admin/options-general.php?page=em_settings_page | 1,303 | 1.80 | 29.64 | 30.32 |
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
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/elite-members/admin/em-widgets.php+168
Function create_function() is deprecated
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_elitemembers_widget
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=em_settings_page
- > Deprecated in wp-content/plugins/elite-members/admin/em-widgets.php+168
Function create_function() is deprecated
- > GET request to /wp-admin/options-general.php?page=em_settings_page
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=em_settings_page
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% 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
Please take a closer look at the following
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/elite-members/em-post.php:316
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/elite-members/admin/em-settings-page.php:341
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/elite-members/admin/em-settings-page.php:341
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/elite-members/admin/em-user-fields.php:59
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/elite-members/admin/em-widgets.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
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
4 plugin tags: authors, author box, author list, elite members
elite-members/elite-members.php Passed 13 tests
The principal PHP file in "Elite Members" v. 1.0.3 is loaded by WordPress automatically on each request
120 characters long description:
Elite Members - A WordPress plugin for the listing of users from Subscribers to Admin. Display users in a dynamic list.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected2,476 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 71 | 32 | 1,169 |
JavaScript | 4 | 177 | 62 | 1,006 |
CSS | 2 | 45 | 4 | 301 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 6.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
98 PNG files occupy 0.19MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icons-lg/deviantart.png | 2.82KB | 1.11KB | ▼ 60.64% |
images/icons/digg_hover.png | 1.24KB | 0.31KB | ▼ 74.67% |
images/icons/google_hover.png | 1.29KB | 0.36KB | ▼ 72.05% |
images/icons/youtube.png | 1.48KB | 0.52KB | ▼ 65.04% |
images/icons/lastfm_hover.png | 1.43KB | 0.43KB | ▼ 69.69% |