Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲1.82MB] [CPU: ▲4.85ms] Passed 4 tests
Analyzing server-side resources used by Page View Count
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.32 ▲1.85 | 53.14 ▲11.75 |
Dashboard /wp-admin | 5.13 ▲1.78 | 54.47 ▼6.64 |
Posts /wp-admin/edit.php | 5.18 ▲1.82 | 59.86 ▲8.87 |
Add New Post /wp-admin/post-new.php | 7.72 ▲1.83 | 100.31 ▲5.41 |
Media Library /wp-admin/upload.php | 5.09 ▲1.85 | 60.15 ▲23.48 |
Page Views Count /wp-admin/options-general.php?page=a3-pvc | 5.10 | 59.56 |
Server storage [IO: ▲2.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 167 new files
Database: 2 new tables, 15 new options
New tables |
---|
wp_pvc_total |
wp_pvc_daily |
New WordPress options |
---|
pvc_style_version |
db_upgraded |
pvc_settings |
widget_theysaidso_widget |
a3rev_auth_pvc |
widget_recent-posts |
a3rev_pvc_plugin |
a3_pvc_version |
a3_page_view_count_clean_on_deletion |
pvc_reset_all_individual |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Page View Count
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,893 ▲146 | 13.50 ▼0.67 | 10.43 ▲8.98 | 43.19 ▲1.59 |
Dashboard /wp-admin | 2,201 ▲23 | 5.62 ▼0.08 | 96.47 ▼14.71 | 44.50 ▼0.91 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.00 ▲0.05 | 39.32 ▼1.41 | 36.48 ▲1.11 |
Add New Post /wp-admin/post-new.php | 6,449 ▲4,923 | 27.34 ▲4.30 | 948.34 ▲246.77 | 57.87 ▼9.83 |
Media Library /wp-admin/upload.php | 1,406 ▲3 | 4.18 ▼0.01 | 110.77 ▲5.29 | 48.17 ▲3.40 |
Page Views Count /wp-admin/options-general.php?page=a3-pvc | 2,749 | 4.50 | 102.68 | 69.83 |
Uninstaller [IO: ▲0.01MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure failed, leaving 2 tables in the database
- wp_pvc_total
- wp_pvc_daily
- Zombie WordPress options were found after uninstall: 15 options
- theysaidso_admin_options
- widget_widget_pvc_stats
- pvc_current_rest_api_enabled
- a3_pvc_version
- a3rev_auth_pvc
- pvc_settings
- pvc_reset_all_individual
- widget_recent-posts
- widget_theysaidso_widget
- pvc_style_version
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function update_option() in wp-content/plugins/page-views-count/admin/plugin-init.php:25
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/page-views-count/includes/customized_style.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/page-views-count/page-views-count.php:16
- > PHP Fatal error
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 96% 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
5 plugin tags: post view count, page view count, gutenberg, wordpress page view, post views
page-views-count/page-views-count.php 92% from 13 tests
The primary PHP file in "Page View Count" version 2.8.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 252 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected41,003 lines of code in 111 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 13,239 |
JavaScript | 31 | 2,011 | 1,549 | 12,454 |
PHP | 31 | 2,238 | 1,839 | 9,602 |
CSS | 24 | 296 | 175 | 3,251 |
PO File | 5 | 641 | 783 | 1,543 |
LESS | 7 | 87 | 29 | 796 |
SVG | 7 | 3 | 0 | 51 |
Sass | 3 | 3 | 1 | 38 |
HTML | 1 | 2 | 0 | 29 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 410)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 76.81 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 801.00 |
Average method complexity | 5.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 410.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 26 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 398 | |
▷ Static methods | 35 | 8.79% |
▷ Public methods | 229 | 57.54% |
▷ Protected methods | 141 | 35.43% |
▷ Private methods | 28 | 7.04% |
Functions | 24 | |
▷ Named functions | 19 | 79.17% |
▷ Anonymous functions | 5 | 20.83% |
Constants | 16 | |
▷ Global constants | 11 | 68.75% |
▷ Class constants | 5 | 31.25% |
▷ Public constants | 5 | 100.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
28 PNG files occupy 0.21MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/slider-bg-disable.png | 1.04KB | 0.14KB | ▼ 86.45% |
assets/images/free-wordpress-plugins.png | 79.93KB | 29.22KB | ▼ 63.44% |
assets/images/follow-facebook.png | 1.56KB | 0.43KB | ▼ 72.77% |
admin/assets/images/slider-container-start-disable.png | 1.53KB | 0.56KB | ▼ 63.40% |
admin/assets/images/slider-bg-track1.png | 1.10KB | 0.61KB | ▼ 44.28% |