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.19MB] [CPU: ▼1.93ms] Passed 4 tests
A check of server-side resources used by Post Views Counter
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 42.27 ▼0.42 |
Dashboard /wp-admin | 3.56 ▲0.21 | 56.20 ▼3.65 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 53.45 ▼0.56 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 88.79 ▼3.09 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 37.51 ▲6.07 |
Display /wp-admin/admin.php?page=post-views-counter&tab=display | 3.43 | 36.45 |
Reports /wp-admin/admin.php?page=post-views-counter&tab=reports | 3.43 | 33.75 |
General /wp-admin/admin.php?page=post-views-counter | 3.43 | 32.18 |
Other /wp-admin/admin.php?page=post-views-counter&tab=other | 3.43 | 32.07 |
Server storage [IO: ▲0.72MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 40 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_post_views |
New WordPress options |
---|
widget_post_views_counter_list_widget |
post_views_counter_activation_date |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Post Views Counter
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,001 ▲239 | 15.95 ▲1.69 | 1.76 ▲0.04 | 28.01 ▼16.38 |
Dashboard /wp-admin | 2,404 ▲223 | 6.55 ▲0.79 | 168.07 ▲68.62 | 48.66 ▲9.29 |
Posts /wp-admin/edit.php | 2,204 ▲104 | 2.05 ▲0.09 | 54.52 ▲12.60 | 40.49 ▲3.49 |
Add New Post /wp-admin/post-new.php | 1,586 ▲57 | 23.53 ▲0.40 | 655.13 ▲69.36 | 35.24 ▼13.11 |
Media Library /wp-admin/upload.php | 1,446 ▲46 | 4.18 ▼0.12 | 96.43 ▼0.06 | 41.10 ▼2.52 |
Display /wp-admin/admin.php?page=post-views-counter&tab=display | 1,154 | 2.04 | 25.84 | 34.93 |
Reports /wp-admin/admin.php?page=post-views-counter&tab=reports | 953 | 2.03 | 24.64 | 31.98 |
General /wp-admin/admin.php?page=post-views-counter | 1,277 | 1.71 | 30.76 | 35.62 |
Other /wp-admin/admin.php?page=post-views-counter&tab=other | 1,001 | 2.21 | 25.57 | 29.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_post_views
- Zombie WordPress options were found after uninstall: 8 options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_post_views_counter_list_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- post_views_counter_activation_date
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP Passed 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
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: Add a description for screenshot #3 in post-views-counter/assets to your readme.txt
post-views-counter/post-views-counter.php Passed 13 tests
This is the main PHP file of "Post Views Counter" version 1.4.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
140 characters long description:
Post Views Counter allows you to display how many times a post, page or custom post type had been viewed in a simple, fast and reliable way.
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
Everything looks great! No dangerous files found in this plugin6,955 lines of code in 36 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 1,302 | 2,336 | 5,932 |
JavaScript | 11 | 135 | 205 | 507 |
CSS | 8 | 36 | 15 | 487 |
Markdown | 1 | 9 | 0 | 29 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 62.53 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 180.00 |
Average method complexity | 5.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 61.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 1 | 6.67% |
Methods | 195 | |
▷ Static methods | 1 | 0.51% |
▷ Public methods | 180 | 92.31% |
▷ Protected methods | 1 | 0.51% |
▷ Private methods | 14 | 7.18% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.17MB with 0.10MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/page-reports.png | 172.82KB | 70.52KB | ▼ 59.19% |