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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.80 ▼1.04 | 5.07 ▼33.62 |
Dashboard /wp-admin | 1.82 ▼1.24 | 5.49 ▼44.31 |
Posts /wp-admin/edit.php | 1.82 ▼1.29 | 5.64 ▼38.86 |
Add New Post /wp-admin/post-new.php | 1.82 ▼3.62 | 5.61 ▼657.99 |
Media Library /wp-admin/upload.php | 1.82 ▼1.19 | 5.29 ▼31.35 |
Biography /wp-admin/admin.php?page=biography_options | 1.82 | 6.31 |
Add New /wp-admin/admin.php?page=add_new_biography | 1.82 | 6.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,731 ▲149 | 16.02 ▲0.48 | 8.87 ▼1.18 | 47.97 ▲0.93 |
Dashboard /wp-admin | 3,010 ▲79 | 6.12 ▲0.12 | 150.27 ▼6.18 | 100.21 ▼11.62 |
Posts /wp-admin/edit.php | 2,779 ▲40 | 2.73 ▲0.03 | 66.13 ▼1.24 | 82.81 ▼6.61 |
Add New Post /wp-admin/post-new.php | 1,643 ▲28 | 21.50 ▲0.25 | 335.06 ▲27.00 | 105.64 ▼3.63 |
Media Library /wp-admin/upload.php | 1,850 ▲43 | 5.04 ▲0.03 | 158.64 ▲8.48 | 97.00 ▼23.91 |
Biography /wp-admin/admin.php?page=biography_options | 1,117 | 2.34 | 55.30 | 95.85 |
Add New /wp-admin/admin.php?page=add_new_biography | 1,153 | 2.36 | 58.23 | 77.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 38 | 17 | 217 |
CSS | 1 | 0 | 0 | 8 |
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 code | 0.25 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 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
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 38.03KB | 18.10KB | ▼ 52.41% |