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.02MB] [CPU: ▼3.07ms] Passed 4 tests
Server-side resources used by Debug User/Post/Options Meta Data
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.36 ▼5.33 |
Dashboard /wp-admin | 3.33 ▲0.03 | 50.93 ▲1.52 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 50.90 ▲1.60 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 87.11 ▼10.07 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 36.10 ▲2.61 |
FM Debug Meta Data /wp-admin/tools.php?page=Fm_debug_meta_data | 3.25 | 32.96 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Debug User/Post/Options Meta Data: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲77 | 13.21 ▼1.57 | 1.62 ▼0.32 | 38.49 ▼12.32 |
Dashboard /wp-admin | 2,218 ▲36 | 4.89 ▼0.14 | 114.50 ▲5.37 | 44.42 ▲4.34 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.06 ▲0.06 | 39.84 ▲0.87 | 34.69 ▼0.83 |
Add New Post /wp-admin/post-new.php | 1,525 ▼8 | 23.35 ▲2.33 | 618.32 ▲19.73 | 56.86 ▲10.08 |
Media Library /wp-admin/upload.php | 1,400 ▲12 | 4.29 ▲0.07 | 99.24 ▼2.16 | 43.37 ▼0.52 |
FM Debug Meta Data /wp-admin/tools.php?page=Fm_debug_meta_data | 1,018 | 1.96 | 38.12 | 37.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/fm-debug-meta-data/view-debug-meta-data.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined variable: user_select in wp-content/plugins/fm-debug-meta-data/view-debug-meta-data.php on line 20
- > PHP Notice
Undefined variable: post_select in wp-content/plugins/fm-debug-meta-data/view-debug-meta-data.php on line 71
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/fm-debug-meta-data/fm-debug-meta-data.php:13
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== fm-debug-meta-data ===
)
fm-debug-meta-data/fm-debug-meta-data.php Passed 13 tests
The main PHP file in "Debug User/Post/Options Meta Data" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
112 characters long description:
Debug User/Post/Options Meta Data plugin lets administrators debug users and posts meta data in a friendly view.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected373 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 112 | 37 | 197 |
CSS | 2 | 29 | 8 | 132 |
JavaScript | 1 | 24 | 5 | 44 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 3.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icons.png | 0.74KB | 0.78KB | 0.00% |