Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/post-views-stats/cn-post-views-stats.php+239
Function create_function() is deprecated
Server metrics [RAM: ▼1.90MB] [CPU: ▼54.41ms] Passed 4 tests
This is a short check of server-side resources used by Post views Stats
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.38 | 4.93 ▼35.51 |
Dashboard /wp-admin | 2.11 ▼1.20 | 5.68 ▼45.97 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 5.49 ▼42.60 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 5.85 ▼93.57 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 6.29 ▼33.50 |
Server storage [IO: ▲0.54MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 25 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_cn_track_post |
New WordPress options |
---|
widget_cntpv_widget |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Post views Stats
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲59 | 14.35 ▼0.38 | 2.17 ▲0.37 | 43.33 ▲3.83 |
Dashboard /wp-admin | 2,211 ▲31 | 5.67 ▲0.07 | 88.75 ▲0.74 | 91.57 ▲48.93 |
Posts /wp-admin/edit.php | 2,144 ▲41 | 2.20 ▲0.21 | 37.31 ▲0.95 | 40.06 ▲4.94 |
Add New Post /wp-admin/post-new.php | 1,718 ▲192 | 24.75 ▲1.21 | 728.44 ▲38.94 | 49.11 ▼9.74 |
Media Library /wp-admin/upload.php | 1,431 ▲34 | 4.32 ▲0.13 | 101.59 ▼5.95 | 61.69 ▲17.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/post-views-stats/cn-post-views-stats.php+239
Function create_function() is deprecated
- Zombie tables detected upon uninstall: 1 table
- wp_cn_track_post
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- widget_cntpv_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
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
Everything seems fine, however this is by no means 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 fix the following
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/post-views-stats/view.php
- > /wp-content/plugins/post-views-stats/cn-post-views-stats.php
- > /wp-content/plugins/post-views-stats/view-most-popular.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Donate link: Invalid URI found ("")
- Tags: Please reduce the number of tags, currently 20 tag instead of maximum 10
- Screenshots: These screenshots require images: #1 (layout for most popular post in the sidebar), #2 (post view counts in the wp admin area), #3 (view count column in all post page), #4 (layout for widget for most popular post)
post-views-stats/cn-post-views-stats.php 85% from 13 tests
"Post views Stats" version 1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("post-views-stats.php" instead of "cn-post-views-stats.php")
- Description: The description should be shorter than 140 characters (currently 250 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin890 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 22 | 32 | 599 |
PHP | 3 | 34 | 14 | 291 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/ui-icons_444444_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
css/images/ui-icons_777620_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
css/images/ui-icons_ffffff_256x240.png | 6.15KB | 4.17KB | ▼ 32.13% |
css/images/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
css/images/ui-icons_777777_256x240.png | 6.83KB | 4.17KB | ▼ 38.92% |