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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.42ms] Passed 4 tests
This is a short check of server-side resources used by User Age Calculator
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 40.34 ▼7.64 |
Dashboard /wp-admin | 3.36 ▲0.01 | 53.29 ▼11.38 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 60.92 ▲3.26 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 91.68 ▲0.09 |
Media Library /wp-admin/upload.php | 3.29 ▲0.05 | 39.53 ▲1.26 |
User Age Calculator /wp-admin/options-general.php?page=user-age-calculator | 3.36 | 39.80 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
uac_welcome |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for User Age Calculator
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲72 | 14.36 ▼0.22 | 1.85 ▲0.00 | 40.88 ▲1.73 |
Dashboard /wp-admin | 2,224 ▲47 | 5.83 ▲0.17 | 94.04 ▲3.64 | 38.44 ▼5.45 |
Posts /wp-admin/edit.php | 2,131 ▲28 | 2.29 ▲0.28 | 40.29 ▲0.23 | 35.11 ▼2.03 |
Add New Post /wp-admin/post-new.php | 1,565 ▲37 | 23.26 ▲0.13 | 619.27 ▼69.91 | 32.79 ▼29.89 |
Media Library /wp-admin/upload.php | 1,426 ▲26 | 4.44 ▲0.26 | 100.28 ▼11.03 | 43.15 ▼5.48 |
User Age Calculator /wp-admin/options-general.php?page=user-age-calculator | 4,859 | 4.11 | 118.85 | 43.20 |
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
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- db_upgraded
- widget_theysaidso_widget
- uac_welcome
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/user-age-calculator/user-age-calculator.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/user-age-calculator/templates/admin-panel.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/user-age-calculator/templates/user-age-calculator-template1.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/user-age-calculator/templates/user-age-calculator-template2.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: user age calculator, age calculator
user-age-calculator/user-age-calculator.php 92% from 13 tests
"User Age Calculator" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Requires at least: Required version does not match the one declared in readme.txt ("4.9" instead of "5.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin1,095 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 178 | 60 | 628 |
JavaScript | 2 | 64 | 42 | 261 |
CSS | 2 | 30 | 0 | 172 |
Markdown | 1 | 18 | 0 | 34 |
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 problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 46.00 |
▷ Minimum class complexity | 46.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 6.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.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 | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 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 | 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
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.48MB with 0.34MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-4.png | 238.13KB | 50.53KB | ▼ 78.78% |
assets/screenshot-1.png | 15.36KB | 5.76KB | ▼ 62.50% |
assets/screenshot-3.png | 217.49KB | 45.64KB | ▼ 79.01% |
assets/screenshot-2.png | 22.08KB | 8.22KB | ▼ 62.78% |