Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.01MB] [CPU: ▼288.81ms] Passed 4 tests
An overview of server-side resources used by WP Post Visit Count
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 56.64 ▲4.68 |
Dashboard /wp-admin | 3.42 ▲0.02 | 34.69 ▼2.13 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 39.93 ▼4.06 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 98.35 ▼1,150.02 |
Media Library /wp-admin/upload.php | 3.31 ▲0.01 | 25.81 ▲0.96 |
WP Post Visit Count /wp-admin/options-general.php?page=wpvc_options | 3.27 | 24.49 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by WP Post Visit Count
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,787 ▲33 | 15.91 ▲0.66 | 6.09 ▼0.05 | 2.45 ▼0.66 |
Dashboard /wp-admin | 2,879 ▲21 | 6.08 ▲0.03 | 123.38 ▼16.57 | 205.67 ▲43.71 |
Posts /wp-admin/edit.php | 2,706 ▲21 | 3.24 ▲0.01 | 65.22 ▼0.63 | 143.61 ▼2.73 |
Add New Post /wp-admin/post-new.php | 1,755 ▲94 | 21.26 ▲5.35 | 455.49 ▲44.27 | 191.74 ▲22.35 |
Media Library /wp-admin/upload.php | 1,703 ▲5 | 5.52 ▼0.01 | 152.14 ▲12.60 | 240.39 ▲50.11 |
WP Post Visit Count /wp-admin/options-general.php?page=wpvc_options | 973 | 2.36 | 54.70 | 97.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
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 | 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
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-post-visit-count/wp-post-visit-count.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== wp-post-visit-count ===
) - Screenshots: These screenshots have no corresponding images in /assets: #1 (Screen shot for view column in posts table.), #2 (Screen shot for options page for future use.)
wp-post-visit-count/wp-post-visit-count.php Passed 13 tests
The primary PHP file in "WP Post Visit Count" version 1.0 is used by WordPress to initiate all plugin functionality
101 characters long description:
This plugin counts the post visits. Use 'post_views_count' meta key to get current post visit counts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin65 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 39 | 35 | 65 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
2 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 33.65KB | 15.79KB | ▼ 53.06% |
screenshot-1.png | 51.49KB | 23.93KB | ▼ 53.52% |