Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Profile_Field_Based_Content::activate() should not be called statically
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.67ms] Passed 4 tests
An overview of server-side resources used by Profile field based content shortcode
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 40.73 ▼4.83 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.98 ▼3.70 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 51.24 ▼2.31 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 85.68 ▼11.83 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 40.68 ▲2.97 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Profile field based content shortcode
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲54 | 13.66 ▼1.11 | 1.81 ▼0.43 | 41.14 ▼6.45 |
Dashboard /wp-admin | 2,215 ▲9 | 5.83 ▲0.92 | 99.82 ▼3.32 | 37.68 ▼4.04 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.99 ▲0.02 | 43.51 ▲1.25 | 37.10 ▲1.02 |
Add New Post /wp-admin/post-new.php | 1,545 ▼0 | 23.22 ▲0.05 | 663.50 ▲48.84 | 75.81 ▲6.92 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.45 ▲0.22 | 113.69 ▲2.99 | 48.77 ▲2.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method Profile_Field_Based_Content::deactivate() should not be called statically
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/profile-field-based-content-shortcode/profile-field-based-content-bp.php:36
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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
Attributes that require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== profile-field-based-content-shortcode ===
)
profile-field-based-content-shortcode/profile-field-based-content-bp.php 92% from 13 tests
The primary PHP file in "Profile field based content shortcode" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("profile-field-based-content-shortcode.php" instead of "profile-field-based-content-bp.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected58 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 21 | 25 | 58 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 59.75KB | 21.34KB | ▼ 64.28% |
assets/banner-772x250.png | 24.19KB | 8.93KB | ▼ 63.08% |