Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼7.41ms] Passed 4 tests
Analyzing server-side resources used by Simple User Meta Editor
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 41.11 ▼6.12 |
Dashboard /wp-admin | 3.35 ▲0.05 | 48.06 ▼0.66 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 45.18 ▼5.10 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 87.05 ▼17.74 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.15 ▲2.55 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Simple User Meta Editor: 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,814 ▲28 | 14.35 ▲0.01 | 2.02 ▲0.19 | 46.06 ▲5.04 |
Dashboard /wp-admin | 2,198 ▲18 | 5.51 ▼0.14 | 85.60 ▼3.03 | 38.11 ▼10.97 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.04 ▲0.03 | 37.31 ▼3.72 | 30.77 ▼9.56 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.28 ▼0.21 | 674.89 ▼25.25 | 60.96 ▼3.81 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.17 ▲0.01 | 93.80 ▼5.90 | 42.49 ▼2.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant ME_ANJAN_SUME_URL - assumed 'ME_ANJAN_SUME_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-user-meta-editor/includes/templates/editor/index.php on line 7
- > PHP Notice
Undefined variable: user in wp-content/plugins/simple-user-meta-editor/includes/templates/editor/index.php on line 6
- > PHP Warning
Use of undefined constant ME_ANJAN_SUME_URL - assumed 'ME_ANJAN_SUME_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-user-meta-editor/includes/templates/editor/index.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/simple-user-meta-editor/index.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/simple-user-meta-editor/includes/templates/editor/index.php:11
- > PHP Warning
Use of undefined constant ME_ANJAN_SUME_URL - assumed 'ME_ANJAN_SUME_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-user-meta-editor/includes/templates/editor/index.php on line 8
- > PHP Notice
Trying to get property 'user_login' of non-object in wp-content/plugins/simple-user-meta-editor/includes/templates/editor/index.php on line 6
- > PHP Warning
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)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: editor, meta
simple-user-meta-editor/index.php 92% from 13 tests
The principal PHP file in "Simple User Meta Editor" v. 1.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("simple-user-meta-editor.php" instead of "index.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
Success! There were no dangerous files found in this plugin892 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 231 | 180 | 397 |
SVG | 1 | 0 | 0 | 288 |
JavaScript | 3 | 92 | 17 | 159 |
Sass | 2 | 9 | 0 | 44 |
CSS | 4 | 0 | 10 | 4 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 6.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 3.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 8 | 44.44% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
2 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 22.54KB | 10.09KB | ▼ 55.24% |
assets/screenshot-2.png | 35.69KB | 15.30KB | ▼ 57.12% |