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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼7.32ms] Passed 4 tests
An overview of server-side resources used by CTRL User Generator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 44.00 ▲2.83 |
Dashboard /wp-admin | 3.35 ▲0.05 | 48.78 ▼5.90 |
Posts /wp-admin/edit.php | 3.46 ▲0.11 | 46.80 ▲0.30 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 84.96 ▼22.49 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.38 ▼1.17 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by CTRL User Generator
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲72 | 14.73 ▲0.54 | 2.54 ▲0.75 | 45.41 ▼1.00 |
Dashboard /wp-admin | 2,214 ▲37 | 5.59 ▼0.06 | 84.72 ▼5.27 | 42.09 ▲1.36 |
Posts /wp-admin/edit.php | 2,119 ▲19 | 2.03 ▼0.02 | 37.01 ▲1.10 | 41.28 ▲6.37 |
Add New Post /wp-admin/post-new.php | 1,542 ▲11 | 17.85 ▼5.43 | 656.05 ▼18.35 | 71.54 ▲22.39 |
Media Library /wp-admin/upload.php | 1,413 ▲10 | 4.35 ▲0.11 | 98.46 ▼4.50 | 45.18 ▲0.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ctrl-user-generator/templates/user-generator-page.php:2
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== ctrl-user-generator ===
)
ctrl-user-generator/ctrl-user-generator.php Passed 13 tests
"CTRL User Generator" version 0.7.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
73 characters long description:
Easily generate new - fake - users to test your plugin / theme of website
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected511 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 93 | 286 | 254 |
JSON | 2 | 0 | 0 | 208 |
PO File | 1 | 12 | 12 | 49 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 65.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 34.78% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
There are no PNG files in this plugin