Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.58MB] [CPU: ▼191.70ms] Passed 4 tests
A check of server-side resources used by Pageviews
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.05 | 2,836.82 ▲2,798.19 |
Dashboard /wp-admin | 3.11 ▲0.05 | 53.27 ▲2.04 |
Posts /wp-admin/edit.php | 3.19 ▲0.09 | 50.58 ▼0.21 |
Add New Post /wp-admin/post-new.php | 2.95 ▼2.48 | 30.12 ▼767.41 |
Media Library /wp-admin/upload.php | 3.05 ▲0.05 | 37.70 ▼1.22 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 1 new option
New WordPress options |
---|
pageviews_config |
Browser metrics Passed 4 tests
An overview of browser requirements for Pageviews
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,850 ▲244 | 16.58 ▲0.91 | 18.45 ▲7.64 | 50.20 ▼9.13 |
Dashboard /wp-admin | 2,985 ▲51 | 5.94 ▼0.06 | 147.97 ▼2.80 | 118.16 ▼0.06 |
Posts /wp-admin/edit.php | 2,772 ▲33 | 2.58 ▼0.13 | 68.94 ▼8.52 | 99.77 ▲6.50 |
Add New Post /wp-admin/post-new.php | 1,636 ▼47 | 21.39 ▲2.60 | 296.25 ▼140.48 | 110.80 ▼8.61 |
Media Library /wp-admin/upload.php | 1,778 ▼29 | 5.00 ▼0.06 | 166.37 ▲15.54 | 127.98 ▼14.78 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 1 option
- pageviews_config
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined variable: message in wp-content/plugins/pageviews/templates/admin-notice.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_js() in wp-content/plugins/pageviews/templates/admin-notice.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pageviews/includes/rest-controller.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/pageviews/templates/auth.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pageviews/pageviews.php:21
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: views, analytics, pageviews, hits, stats...
pageviews/pageviews.php Passed 13 tests
The primary PHP file in "Pageviews" version 0.11.0 is used by WordPress to initiate all plugin functionality
78 characters long description:
A simple and lightweight pageviews counter for your WordPress posts and pages.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin418 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 82 | 57 | 354 |
JavaScript | 2 | 12 | 2 | 64 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 20 | 100.00% |
▷ Public methods | 20 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin