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
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼9.61ms] Passed 4 tests
This is a short check of server-side resources used by Visited US States
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 35.26 ▼5.50 |
Dashboard /wp-admin | 3.38 ▲0.04 | 45.75 ▼19.74 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 45.91 ▼3.11 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 83.03 ▼10.08 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.09 ▲0.82 |
States /wp-admin/admin.php?page=vus-visited-states | 3.25 | 30.86 |
Settings /wp-admin/admin.php?page=vus-settings | 3.25 | 29.79 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
vus_settings |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
vus_states |
vus_plugin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Visited US States
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲81 | 13.18 ▼1.43 | 1.69 ▼0.22 | 39.96 ▼1.98 |
Dashboard /wp-admin | 2,236 ▲45 | 5.90 ▲0.06 | 108.53 ▲4.60 | 40.85 ▼3.56 |
Posts /wp-admin/edit.php | 2,116 ▲27 | 2.06 ▼0.00 | 34.92 ▲0.97 | 33.25 ▼4.78 |
Add New Post /wp-admin/post-new.php | 1,564 ▲50 | 18.54 ▼5.04 | 623.03 ▲18.93 | 49.47 ▲2.74 |
Media Library /wp-admin/upload.php | 1,415 ▲24 | 4.16 ▼0.06 | 93.01 ▼5.47 | 41.29 ▼2.11 |
States /wp-admin/admin.php?page=vus-visited-states | 1,159 | 2.41 | 42.58 | 32.81 |
Settings /wp-admin/admin.php?page=vus-settings | 1,031 | 2.40 | 40.70 | 28.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 8 options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- vus_settings
- widget_theysaidso_widget
- widget_recent-posts
- vus_plugin_options
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 50 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=vus-visited-states
- > Notice in wp-content/plugins/visited-states/inc/vus_states_page.php+108
Undefined variable: c
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=vus-settings
- > Notice in wp-content/plugins/visited-states/inc/vus_settings_page.php+43
Undefined variable: selected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 4× PHP files output text when accessed directly:
- > /wp-content/plugins/visited-states/np_visited_states.php
- > /wp-content/plugins/visited-states/inc/vus_settings_page.php
- > /wp-content/plugins/visited-states/inc/vus_map.php
- > /wp-content/plugins/visited-states/inc/vus_states_page.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== visited-states ===
)
visited-states/np_visited_states.php 92% from 13 tests
"Visited US States" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("visited-states.php" instead of "np_visited_states.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,576 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 114 | 14 | 1,210 |
PHP | 4 | 52 | 41 | 366 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
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 | 33 | |
▷ Named functions | 33 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
ammap/images/export.png | 0.21KB | 0.13KB | ▼ 38.07% |