Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼6.72ms] Passed 4 tests
A check of server-side resources used by User Generator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 39.24 ▲0.67 |
Dashboard /wp-admin | 3.42 ▲0.12 | 48.26 ▼0.93 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 47.99 ▼19.86 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 86.55 ▼6.77 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 46.60 ▲7.16 |
User Generator /wp-admin/users.php?page=user-generator | 3.33 | 36.91 |
Server storage [IO: ▲0.75MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for User Generator
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲38 | 13.86 ▼0.67 | 1.58 ▼0.20 | 41.24 ▼2.92 |
Dashboard /wp-admin | 2,199 ▲22 | 5.15 ▼0.38 | 114.76 ▲27.18 | 38.35 ▼2.26 |
Posts /wp-admin/edit.php | 2,110 ▲7 | 2.67 ▲0.69 | 39.27 ▲0.89 | 32.90 ▼3.04 |
Add New Post /wp-admin/post-new.php | 1,544 ▲16 | 25.41 ▲2.45 | 655.57 ▼29.89 | 62.76 ▼6.36 |
Media Library /wp-admin/upload.php | 1,413 ▲16 | 4.77 ▲0.59 | 102.76 ▼6.66 | 43.07 ▼1.49 |
User Generator /wp-admin/users.php?page=user-generator | 815 | 2.38 | 36.51 | 26.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-generator/user-generator.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-generator/functions/rest.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/users.php?page=user-generator
- > Network (severe)
wp-json/usergen/start - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/users.php?page=user-generator
- > Javascript (severe) in unknown
/wp-admin/users.php?page=user-generator 0:0 Uncaught SyntaxError: Unexpected token '
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
3 plugin tags: random users, generate users, generator
user-generator/user-generator.php 92% from 13 tests
The main PHP script in "User Generator" version 1.0.0 is automatically included on every request by WordPress
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,153 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 5 | 377 | 375 | 838 |
PHP | 5 | 46 | 57 | 257 |
JavaScript | 1 | 0 | 156 | 44 |
Markdown | 1 | 8 | 0 | 13 |
CSS | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 1 | 20.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 80.00% |
Functions | 13 | |
▷ Named functions | 10 | 76.92% |
▷ Anonymous functions | 3 | 23.08% |
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
No PNG files were detected