Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼5.37ms] Passed 4 tests
This is a short check of server-side resources used by Display custom fields in the frontend - Post and User Profile Fields
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 38.46 ▼3.64 |
Dashboard /wp-admin | 3.32 ▲0.02 | 46.34 ▼0.70 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 40.63 ▼4.95 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 78.58 ▼10.64 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.78 ▼2.25 |
Shortcode to display post and user data /wp-admin/admin.php?page=wpdspu_welcome_page | 3.25 | 28.45 |
Shortcode to display post and user data /wp-admin/admin.php?page=wpdspu_whats_new | 3.18 | 28.91 |
Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
wpdspu_welcome_redirect |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Display custom fields in the frontend - Post and User Profile Fields
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲90 | 13.25 ▼1.12 | 2.17 ▲0.50 | 43.96 ▲1.46 |
Dashboard /wp-admin | 2,206 ▲14 | 4.85 ▼0.04 | 111.71 ▲3.46 | 41.82 ▼1.24 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▲0.00 | 33.94 ▼0.64 | 33.16 ▲1.06 |
Add New Post /wp-admin/post-new.php | 1,522 ▼11 | 23.40 ▲0.27 | 597.61 ▼45.56 | 55.30 ▼5.79 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.25 ▲0.05 | 93.74 ▼5.27 | 41.36 ▼0.22 |
Shortcode to display post and user data /wp-admin/admin.php?page=wpdspu_welcome_page | 795 | 2.05 | 34.41 | 25.87 |
Shortcode to display post and user data /wp-admin/admin.php?page=wpdspu_whats_new | 767 | 2.02 | 25.65 | 22.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% 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 does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- db_upgraded
- wpdspu_welcome_redirect
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
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
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=wpdspu_whats_new
- > Warning in wp-content/plugins/shortcode-to-display-post-and-user-data/vendor/vg-plugin-sdk/index.php+175
include(/1.2.1.php): failed to open stream: No such file or directory
- > GET request to /wp-admin/admin.php?page=wpdspu_whats_new
- > Warning in wp-content/plugins/shortcode-to-display-post-and-user-data/vendor/vg-plugin-sdk/index.php+175
include(): Failed opening '/1.2.1.php' for inclusion (include_path='.:/usr/share/php')
- > GET request to /wp-admin/admin.php?page=wpdspu_whats_new
- > Notice in wp-content/plugins/shortcode-to-display-post-and-user-data/vendor/vg-plugin-sdk/index.php+177
Undefined variable: items
- > GET request to /wp-admin/admin.php?page=wpdspu_whats_new
- > Warning in wp-content/plugins/shortcode-to-display-post-and-user-data/vendor/vg-plugin-sdk/index.php+193
include(): Filename cannot be empty
- > GET request to /wp-admin/admin.php?page=wpdspu_whats_new
- > Warning in wp-content/plugins/shortcode-to-display-post-and-user-data/vendor/vg-plugin-sdk/index.php+193
include(): Failed opening '' for inclusion (include_path='.:/usr/share/php')
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
Almost there! Just fix the following items
- 6× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/shortcode-to-display-post-and-user-data/vendor/vg-plugin-sdk/views/settings-page.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/shortcode-to-display-post-and-user-data/views/welcome-page-content.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/shortcode-to-display-post-and-user-data/vendor/vg-plugin-sdk/samples/email-optin-form.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/shortcode-to-display-post-and-user-data/vendor/vg-plugin-sdk/index.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/shortcode-to-display-post-and-user-data/vendor/vg-plugin-sdk/views/page-template.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/shortcode-to-display-post-and-user-data/vendor/vg-plugin-sdk/views/settings-form.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: wp page templates, wordpress templates, acf, custom pages, custom fields
shortcode-to-display-post-and-user-data/index.php 92% from 13 tests
"Display custom fields in the frontend - Post and User Profile Fields" version 1.2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("shortcode-to-display-post-and-user-data.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin1,151 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 174 | 67 | 1,103 |
CSS | 1 | 6 | 0 | 48 |
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.60 |
Average class complexity | 58.33 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 91.00 |
Average method complexity | 6.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 48.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 1 | 2.94% |
▷ Public methods | 33 | 97.06% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.94% |
Functions | 1 | |
▷ Named functions | 1 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected