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
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▲0.14ms] Passed 4 tests
This is a short check of server-side resources used by Page View Count by Webline
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 40.67 ▼0.22 |
Dashboard /wp-admin | 3.40 ▲0.09 | 51.13 ▼0.30 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 52.79 ▼0.34 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 92.70 ▲3.63 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 39.75 ▲1.42 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 18 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_pageview_history |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
page_view_option |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Page View Count by Webline
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲47 | 14.21 ▼0.14 | 1.83 ▲0.20 | 45.04 ▲6.23 |
Dashboard /wp-admin | 2,214 ▲40 | 5.62 ▲0.03 | 90.46 ▼11.30 | 42.02 ▼1.47 |
Posts /wp-admin/edit.php | 2,119 ▲16 | 1.98 ▼0.00 | 36.04 ▼2.98 | 35.25 ▲2.60 |
Add New Post /wp-admin/post-new.php | 1,542 ▲10 | 23.41 ▲0.07 | 672.18 ▲14.77 | 60.16 ▲1.47 |
Media Library /wp-admin/upload.php | 1,422 ▲22 | 4.22 ▼0.05 | 96.63 ▼10.48 | 47.80 ▲1.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wp_pageview_history
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- page_view_option
- widget_recent-comments
- widget_recent-posts
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
Please fix the following
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/page-view-count-by-webline/admin/class/menu.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/page-view-count-by-webline/class/hook.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/page-view-count-by-webline/view-count-by-webline.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/page-view-count-by-webline/class/show-view.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/page-view-count-by-webline/admin/class/assets.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/page-view-count-by-webline/admin/class/page-view.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: view counter by user, page view count by user, page view count, post view counter, post count...
page-view-count-by-webline/view-count-by-webline.php 85% from 13 tests
The main PHP file in "Page View Count by Webline" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 199 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("page-view-count-by-webline.php" instead of "view-count-by-webline.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,724 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 139 | 74 | 697 |
PHP | 8 | 231 | 21 | 533 |
CSS | 3 | 49 | 50 | 494 |
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.22 |
Average class complexity | 11.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 40.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 24 | 60.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 11 | 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
4 compressed PNG files occupy 0.01MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/css/images/ui-bg_inset-hard_100_fcfdfd_1x100.png | 0.09KB | 0.09KB | 0.00% |
admin/assets/css/images/ui-icons_469bdd_256x240.png | 4.28KB | 4.13KB | ▼ 3.54% |
admin/assets/css/images/ui-icons_d8e7f3_256x240.png | 4.28KB | 4.13KB | ▼ 3.54% |
admin/assets/css/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png | 3.38KB | 1.68KB | ▼ 50.10% |