Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/kento-wp-stats/includes/Browser.php+39
Methods with the same name as their class will not be constructors in a future version of PHP; Browser_KNP has a deprecated constructor
Server metrics [RAM: ▼1.49MB] [CPU: ▼53.71ms] Passed 4 tests
Server-side resources used by Kento Wordpress Stats
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.50 ▼0.96 | 5.85 ▼35.28 |
Dashboard /wp-admin | 2.52 ▼0.78 | 7.30 ▼41.59 |
Posts /wp-admin/edit.php | 2.52 ▼0.84 | 8.56 ▼42.93 |
Add New Post /wp-admin/post-new.php | 2.52 ▼3.37 | 6.62 ▼95.05 |
Media Library /wp-admin/upload.php | 2.52 ▼0.71 | 6.61 ▼26.34 |
Live Stats /wp-admin/admin.php?page=kento_wp_stats_admin_online | 2.52 | 6.43 |
Visitors /wp-admin/admin.php?page=kento_wp_stats_admin_visitors | 2.52 | 7.18 |
Kento WP Stats /wp-admin/admin.php?page=kento_wp_stats_admin | 2.52 | 6.64 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 64 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_kento_wp_stats_online |
wp_kento_wp_stats |
New WordPress options |
---|
can_compress_scripts |
kento_wp_stats_version |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Kento Wordpress Stats
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,938 ▲203 | 14.13 ▼0.24 | 10.62 ▲8.87 | 42.34 ▼2.61 |
Dashboard /wp-admin | 2,246 ▲58 | 6.04 ▲1.18 | 97.42 ▼4.28 | 38.89 ▼4.52 |
Posts /wp-admin/edit.php | 2,132 ▲43 | 2.02 ▲0.02 | 39.81 ▼1.52 | 36.00 ▼3.44 |
Add New Post /wp-admin/post-new.php | 1,549 ▲35 | 23.06 ▲5.51 | 649.22 ▲35.99 | 53.26 ▲0.83 |
Media Library /wp-admin/upload.php | 1,428 ▲43 | 4.19 ▼0.06 | 97.63 ▼1.47 | 40.40 ▼4.94 |
Live Stats /wp-admin/admin.php?page=kento_wp_stats_admin_online | 806 | 1.76 | 26.16 | 28.76 |
Visitors /wp-admin/admin.php?page=kento_wp_stats_admin_visitors | 1,032 | 2.16 | 23.42 | 37.51 |
Kento WP Stats /wp-admin/admin.php?page=kento_wp_stats_admin | 841 | 1.72 | 24.43 | 29.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/kento-wp-stats/includes/Browser.php+39
Methods with the same name as their class will not be constructors in a future version of PHP; Browser_KNP has a deprecated constructor
- The uninstall procedure failed, leaving 2 tables in the database
- wp_kento_wp_stats_online
- wp_kento_wp_stats
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- kento_wp_stats_version
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 25% 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
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=kento_wp_stats_admin
- > Deprecated in wp-content/plugins/kento-wp-stats/includes/Browser.php+39
Methods with the same name as their class will not be constructors in a future version of PHP; Browser_KNP has a deprecated constructor
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=kento_wp_stats_admin
- > Deprecated in wp-content/plugins/kento-wp-stats/includes/geoplugin.class.php+29
Methods with the same name as their class will not be constructors in a future version of PHP; geoPlugin has a deprecated constructor
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/kento-wp-stats/kento-wp-stats-admin-online.php
- > /wp-content/plugins/kento-wp-stats/kento-wp-stats-admin-geo.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/kento-wp-stats/kento-wp-stats-admin.php:5
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/kento-wp-stats/kento-wp-stats-admin-visitors.php:49
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/kento-wp-stats/index.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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
6 plugin tags: analytics, wordpress stats, visitors count, live visitors, web stats...
kento-wp-stats/index.php 85% from 13 tests
The primary PHP file in "Kento Wordpress Stats" version 1.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("kento-wp-stats.php" instead of "index.php")
- Description: Please improve your description making it at least 10 characters long (currently 0 characters long)
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
Good job! No executable or dangerous file extensions detected2,404 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 734 | 345 | 1,936 |
CSS | 2 | 91 | 1 | 449 |
JavaScript | 1 | 26 | 0 | 19 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 73.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 135.00 |
Average method complexity | 3.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 69 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 37.68% |
▷ Protected methods | 43 | 62.32% |
▷ Private methods | 0 | 0.00% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 57 | |
▷ Global constants | 1 | 1.75% |
▷ Class constants | 56 | 98.25% |
▷ Public constants | 56 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
53 PNG files occupy 0.24MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/platform/OpenBSD.png | 1.84KB | 1.17KB | ▼ 36.74% |
css/browser/Yahoo-Slurp.png | 4.21KB | 1.38KB | ▼ 67.32% |
css/isunique-no.png | 2.84KB | 0.14KB | ▼ 95.08% |
css/browser/Netscape-Navigator.png | 1.36KB | 1.28KB | ▼ 5.76% |
css/browser/Opera.png | 3.61KB | 1.20KB | ▼ 66.73% |