Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▼1.70ms] Passed 4 tests
An overview of server-side resources used by WP Post Statistics (Visitors & Visits Counter)
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.25 | 42.65 ▲1.49 |
Dashboard /wp-admin | 3.57 ▲0.26 | 55.76 ▲6.48 |
Posts /wp-admin/edit.php | 3.69 ▲0.32 | 56.14 ▲1.59 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 91.76 ▼16.04 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 41.72 ▲6.15 |
Server storage [IO: ▲1.19MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 268 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_poststats_visits |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Post Statistics (Visitors & Visits Counter)
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲67 | 14.73 ▲0.13 | 1.79 ▼0.88 | 44.51 ▼4.17 |
Dashboard /wp-admin | 2,231 ▲54 | 5.93 ▲0.30 | 86.89 ▼1.71 | 40.16 ▼3.11 |
Posts /wp-admin/edit.php | 2,427 ▲327 | 2.56 ▲0.53 | 39.85 ▲2.63 | 31.04 ▼8.31 |
Add New Post /wp-admin/post-new.php | 1,562 ▲36 | 23.62 ▲0.46 | 694.20 ▼31.89 | 36.70 ▼32.20 |
Media Library /wp-admin/upload.php | 1,436 ▲39 | 4.63 ▲0.48 | 115.71 ▲13.99 | 48.04 ▲0.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_poststats_visits
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-post-real-time-statistics/index.php
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 90% from 29 tests
readme.txt 88% 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
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Posts statistics page), #2 (Geo Locations page)
- Tags: You are using too many tags: 11 tag instead of maximum 10
wp-post-real-time-statistics/index.php 92% from 13 tests
"WP Post Statistics (Visitors & Visits Counter)" version 2.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-post-real-time-statistics.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin12,324 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 11 | 1,498 | 3,446 | 10,784 |
CSS | 4 | 100 | 66 | 983 |
PHP | 2 | 150 | 28 | 557 |
PHP code Passed 2 tests
A short review 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.37 |
Average class complexity | 68.00 |
▷ Minimum class complexity | 68.00 |
▷ Maximum class complexity | 68.00 |
Average method complexity | 4.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 16 | 94.12% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 10 | 100.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 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
248 compressed PNG files occupy 0.28MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/flag/bz.png | 0.60KB | 0.58KB | ▼ 3.41% |
images/flag/ly.png | 0.37KB | 0.34KB | ▼ 9.66% |
images/flag/ci.png | 0.42KB | 0.46KB | 0.00% |
images/flag/et.png | 0.55KB | 0.54KB | ▼ 1.94% |
images/flag/az.png | 0.46KB | 0.38KB | ▼ 18.64% |