Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼8.19ms] Passed 4 tests
Analyzing server-side resources used by User stats WP
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.77 ▼4.25 |
Dashboard /wp-admin | 3.34 ▲0.03 | 57.34 ▲3.27 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 48.17 ▼6.62 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 88.98 ▼22.09 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.67 ▲0.22 |
Server storage [IO: ▲0.93MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 64 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_userstatswpworbee |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for User stats WP
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲62 | 14.80 ▲0.24 | 2.03 ▲0.20 | 43.94 ▲0.98 |
Dashboard /wp-admin | 2,229 ▲49 | 4.95 ▼0.72 | 103.42 ▲14.42 | 44.45 ▼0.66 |
Posts /wp-admin/edit.php | 2,137 ▲37 | 2.32 ▲0.31 | 35.70 ▼4.11 | 32.90 ▼3.00 |
Add New Post /wp-admin/post-new.php | 1,557 ▲29 | 23.20 ▲0.08 | 682.92 ▲43.14 | 37.50 ▼20.71 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.50 ▲0.33 | 103.80 ▼1.28 | 41.65 ▼4.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 does not fully uninstall, leaving 1 table in the database
- wp_userstatswpworbee
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- 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 smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 3× 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/user-stats-wp/lib/dashboard.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-stats-wp/lib/assets.php:54
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/user-stats-wp/lib/dashboard.php:4
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
4 plugin tags: statistics, stats, analytics, user
user-stats-wp/user-stats-wp.php 92% from 13 tests
Analyzing the main PHP file in "User stats WP" version 1.0.0
Please take the time to fix the following:
- Requires at least: The required version number must match the one declared in readme.txt ("5.0" instead of "5.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin10,348 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 21 | 2,207 | 7,279 | 7,826 |
CSS | 23 | 61 | 126 | 2,303 |
PHP | 5 | 35 | 30 | 183 |
Sass | 1 | 9 | 0 | 24 |
JSON | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.02 |
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 | 9 | |
▷ Named functions | 9 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/datatables/DataTables-1.10.25/images/sort_desc_disabled.png | 0.14KB | 0.25KB | 0.00% |
assets/datatables/DataTables-1.10.25/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |
assets/datatables/DataTables-1.10.25/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
assets/datatables/DataTables-1.10.25/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
assets/datatables/DataTables-1.10.25/images/sort_asc_disabled.png | 0.14KB | 0.25KB | 0.00% |