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: ▼4.28ms] Passed 4 tests
Server-side resources used by Mini Statistics
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.42 ▼7.56 |
Dashboard /wp-admin | 3.32 ▲0.01 | 47.62 ▲0.59 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.61 ▲1.80 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 82.48 ▼11.95 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.23 ▲3.29 |
Comments Statistics /wp-admin/edit-comments.php?page=comments-ministat | 3.21 | 34.60 |
All Comments /wp-admin/edit-comments.php | 3.25 | 37.70 |
Comments Statistics /wp-admin/admin.php?page=comments-ministat | 3.21 | 34.50 |
Users Statistics /wp-admin/admin.php?page=users-ministat | 3.21 | 33.25 |
Statistics /wp-admin/admin.php?page=ministatistics | 3.20 | 30.71 |
Users Statistics /wp-admin/users.php?page=users-ministat | 3.21 | 33.43 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
Mini Statistics: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲106 | 13.23 ▼1.45 | 1.68 ▼0.01 | 42.91 ▼4.44 |
Dashboard /wp-admin | 2,255 ▲67 | 5.87 ▲0.95 | 110.84 ▼2.54 | 43.78 ▼5.91 |
Posts /wp-admin/edit.php | 2,138 ▲49 | 2.03 ▲0.04 | 39.73 ▲3.00 | 37.32 ▲2.70 |
Add New Post /wp-admin/post-new.php | 1,428 ▼100 | 16.71 ▼1.80 | 534.22 ▼109.42 | 50.39 ▼13.03 |
Media Library /wp-admin/upload.php | 1,431 ▲43 | 4.22 ▼0.01 | 94.68 ▼15.03 | 41.64 ▼5.54 |
Comments Statistics /wp-admin/edit-comments.php?page=comments-ministat | 944 | 4.36 | 42.65 | 36.48 |
All Comments /wp-admin/edit-comments.php | 1,841 | 2.27 | 37.28 | 33.66 |
Comments Statistics /wp-admin/admin.php?page=comments-ministat | 947 | 4.38 | 42.06 | 34.42 |
Users Statistics /wp-admin/admin.php?page=users-ministat | 948 | 4.48 | 37.16 | 34.38 |
Statistics /wp-admin/admin.php?page=ministatistics | 881 | 2.06 | 29.91 | 30.24 |
Users Statistics /wp-admin/users.php?page=users-ministat | 951 | 4.52 | 44.27 | 36.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/mini-statistics/mini-statistics.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: comments, admin, users, statistics
mini-statistics/mini-statistics.php Passed 13 tests
"Mini Statistics" version 1.0.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
96 characters long description:
This plugin is a small and simple Users Statistics and Comments Statistics plugin for WordPress.
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
Good job! No executable or dangerous file extensions detected299 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 68 | 28 | 299 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
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 | 5 | |
▷ Named functions | 5 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin