10% members-biography

Code Review | Member Biography

WordPress plugin Member Biography scored 10% from 54 tests.

About plugin

  • Plugin page: members-biography
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.0
  • WordPress version: 5.8.1
  • First release: Apr 15, 2015
  • Latest release: Apr 15, 2015
  • Number of updates: 26
  • Update frequency: every 10.5 days
  • Top authors: tanmoy2015 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 645 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
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/members-biography/index.php+18
    Undefined variable: wpdb

Server metrics [RAM: ▼1.83MB] [CPU: ▼193.70ms] Passed 4 tests

This is a short check of server-side resources used by Member Biography
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /1.80 ▼1.045.07 ▼33.62
Dashboard /wp-admin1.82 ▼1.245.49 ▼44.31
Posts /wp-admin/edit.php1.82 ▼1.295.64 ▼38.86
Add New Post /wp-admin/post-new.php1.82 ▼3.625.61 ▼657.99
Media Library /wp-admin/upload.php1.82 ▼1.195.29 ▼31.35
Biography /wp-admin/admin.php?page=biography_options1.826.31
Add New /wp-admin/admin.php?page=add_new_biography1.826.29

Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: 1 new table, no new options
New tables
wp_biography

Browser metrics Passed 4 tests

Member Biography: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,731 ▲14916.02 ▲0.488.87 ▼1.1847.97 ▲0.93
Dashboard /wp-admin3,010 ▲796.12 ▲0.12150.27 ▼6.18100.21 ▼11.62
Posts /wp-admin/edit.php2,779 ▲402.73 ▲0.0366.13 ▼1.2482.81 ▼6.61
Add New Post /wp-admin/post-new.php1,643 ▲2821.50 ▲0.25335.06 ▲27.00105.64 ▼3.63
Media Library /wp-admin/upload.php1,850 ▲435.04 ▲0.03158.64 ▲8.4897.00 ▼23.91
Biography /wp-admin/admin.php?page=biography_options1,1172.3455.3095.85
Add New /wp-admin/admin.php?page=add_new_biography1,1532.3658.2377.96

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5663
    wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the member-biography-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie tables detected upon uninstall: 1 table
    • wp_biography

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=add_new_biography
    • > User notice in wp-includes/functions.php+5663
    wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the member-biography-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=add_new_biography
    • > Notice in wp-content/plugins/members-biography/index.php+48
    Undefined index: submit

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_style() in wp-content/plugins/members-biography/index.php:9

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=biography_options
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=biography_options 1:1 Uncaught ReferenceError: $ is not defined
    • > GET request to /wp-admin/admin.php?page=add_new_biography
    • > Javascript (severe) in unknown
    /wp-admin/admin.php?page=add_new_biography 1:1 Uncaught ReferenceError: $ is not defined

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Donate link: Invalid url: ""
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt is a good inspiration

members-biography/index.php 92% from 13 tests

"Member Biography" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("members-biography.php" instead of "index.php")

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
Success! There were no dangerous files found in this plugin225 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13817217
CSS1008

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.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
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png38.03KB18.10KB▼ 52.41%