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
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼140.99ms] Passed 4 tests
A check of server-side resources used by Random Address
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 33.28 ▲13.11 |
Dashboard /wp-admin | 3.07 ▲0.02 | 51.79 ▲4.14 |
Posts /wp-admin/edit.php | 3.12 ▲0.02 | 42.46 ▼2.97 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 90.48 ▼556.01 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 29.92 ▼9.13 |
Server storage [IO: ▲0.72MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 1 new option
New WordPress options |
---|
randomaddress_filesize |
Browser metrics Passed 4 tests
A check of browser resources used by Random Address
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,699 ▲93 | 15.90 ▼0.00 | 11.63 ▲3.32 | 47.46 ▼2.46 |
Dashboard /wp-admin | 2,984 ▲50 | 5.91 ▼0.06 | 169.22 ▲17.55 | 101.56 ▼13.58 |
Posts /wp-admin/edit.php | 2,756 ▲17 | 2.72 ▼0.00 | 64.30 ▼1.75 | 97.25 ▲11.67 |
Add New Post /wp-admin/post-new.php | 1,685 ▲2 | 18.90 ▲0.16 | 408.27 ▲17.01 | 125.47 ▲12.95 |
Media Library /wp-admin/upload.php | 1,827 ▲20 | 5.04 ▲0.02 | 147.88 ▼4.33 | 118.07 ▲1.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 1 option in the database
- randomaddress_filesize
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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/generate-random-us-address/randomaddress.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please add descriptions for these screenshots #0, #0 in generate-random-us-address/assets to your readme.txt
- Plugin Name: Please specify the plugin name on the first line (
=== generate-random-us-address ===
) - Donate link: Invalid URI ("")
generate-random-us-address/randomaddress.php 92% from 13 tests
The entry point to "Random Address" version 2.6 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("generate-random-us-address.php" instead of "randomaddress.php")
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
Everything looks great! No dangerous files found in this plugin210 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 18 | 27 | 210 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.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
No PNG files were detected