Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼1.84MB] [CPU: ▼52.04ms] Passed 4 tests
An overview of server-side resources used by Plugin Name: Count Unique Visitors Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.16 ▼1.30 | 13.74 ▼26.66 |
Dashboard /wp-admin | 2.18 ▼1.16 | 11.49 ▼50.39 |
Posts /wp-admin/edit.php | 2.18 ▼1.17 | 13.00 ▼36.43 |
Add New Post /wp-admin/post-new.php | 2.18 ▼3.71 | 12.41 ▼94.67 |
Media Library /wp-admin/upload.php | 2.18 ▼1.05 | 10.93 ▼23.21 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 8 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_cuv_log |
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Plugin Name: Count Unique Visitors Widget: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,878 ▲132 | 13.21 ▼1.33 | 1.93 ▼0.26 | 36.03 ▼6.71 |
Dashboard /wp-admin | 2,232 ▲26 | 5.81 ▼0.13 | 106.92 ▲5.27 | 43.29 ▼7.85 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 2.00 ▼0.03 | 35.51 ▼2.50 | 41.24 ▲6.99 |
Add New Post /wp-admin/post-new.php | 1,386 ▼159 | 20.65 ▼2.53 | 570.29 ▼71.49 | 36.95 ▼12.39 |
Media Library /wp-admin/upload.php | 1,411 ▲14 | 4.29 ▲0.11 | 95.83 ▼8.14 | 44.13 ▼1.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/count-unique-visitors-widget/wp-count-unique-visitors-widget.php+331
Undefined index: HTTP_X_FORWARD_FOR
- Zombie tables detected upon uninstall: 1 table
- wp_cuv_log
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
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 everything seems fine, this is not 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× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/count-unique-visitors-widget/wp-count-unique-visitors-widget.php:369
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== Plugin Name: Count Unique Visitors Widget===
)
count-unique-visitors-widget/wp-count-unique-visitors-widget.php 85% from 13 tests
Analyzing the main PHP file in "Plugin Name: Count Unique Visitors Widget" version 1.0.0
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 168 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("count-unique-visitors-widget.php" instead of "wp-count-unique-visitors-widget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected324 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 69 | 20 | 288 |
JavaScript | 1 | 5 | 0 | 21 |
CSS | 1 | 2 | 0 | 15 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
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 | 16 | |
▷ Named functions | 16 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
count_unique_visitors_plugin_screen_shot.png | 104.70KB | 39.92KB | ▼ 61.87% |