10% elite-members

Code Review | Elite Members

WordPress plugin Elite Members scored10%from 54 tests.

About plugin

  • Plugin page: elite-members
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.0-4.5
  • WordPress version: 6.3.1
  • First release: Dec 6, 2014
  • Latest release: Mar 31, 2016
  • Number of updates: 9
  • Update frequency: every 53.7 days
  • Top authors: b4ucode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,363 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.18 ▼1.285.35 ▼31.30
Dashboard /wp-admin2.20 ▼1.146.48 ▼51.80
Posts /wp-admin/edit.php2.20 ▼1.156.08 ▼39.67
Add New Post /wp-admin/post-new.php2.20 ▼3.686.47 ▼103.36
Media Library /wp-admin/upload.php2.20 ▼1.026.40 ▼29.73
Elite Members /wp-admin/options-general.php?page=em_settings_page2.206.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,914 ▲16813.74 ▼0.858.04 ▲6.3741.53 ▲3.49
Dashboard /wp-admin2,213 ▲225.84 ▼0.0697.26 ▼3.8336.80 ▼8.85
Posts /wp-admin/edit.php2,090 ▲12.01 ▲0.0034.01 ▼0.7033.99 ▲0.47
Add New Post /wp-admin/post-new.php1,540 ▲723.52 ▲0.35595.54 ▼71.9945.32 ▼7.44
Media Library /wp-admin/upload.php1,392 ▲74.24 ▲0.0494.65 ▼4.1738.97 ▼9.37
Elite Members /wp-admin/options-general.php?page=em_settings_page1,3031.8029.6430.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP571321,169
JavaScript4177621,006
CSS2454301

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 code0.25
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity6.75
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/icons-lg/deviantart.png2.82KB1.11KB▼ 60.64%
images/icons/digg_hover.png1.24KB0.31KB▼ 74.67%
images/icons/google_hover.png1.29KB0.36KB▼ 72.05%
images/icons/youtube.png1.48KB0.52KB▼ 65.04%
images/icons/lastfm_hover.png1.43KB0.43KB▼ 69.69%