Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼139.35ms] Passed 4 tests
A check of server-side resources used by SW Post Views Count
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 52.95 ▲29.15 |
Dashboard /wp-admin | 3.09 ▲0.03 | 64.60 ▲8.11 |
Posts /wp-admin/edit.php | 3.07 ▼0.03 | 44.71 ▼3.47 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.01 | 103.12 ▼565.43 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 38.36 ▲3.38 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 8 new files
Database: 1 new table, no new options
New tables |
---|
wp_swpcv_daily_views |
Browser metrics Passed 4 tests
A check of browser resources used by SW Post Views Count
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,681 ▲68 | 15.91 ▲0.34 | 15.56 ▲4.92 | 54.73 ▼0.81 |
Dashboard /wp-admin | 2,969 ▲35 | 5.87 ▼0.04 | 157.05 ▼20.48 | 118.56 ▲7.15 |
Posts /wp-admin/edit.php | 2,756 ▲17 | 2.71 ▼0.00 | 78.63 ▲10.72 | 87.07 ▼0.47 |
Add New Post /wp-admin/post-new.php | 1,744 ▲61 | 18.23 ▼0.07 | 429.03 ▼14.04 | 131.78 ▲11.22 |
Media Library /wp-admin/upload.php | 1,809 ▲5 | 5.05 ▲0.02 | 184.65 ▼25.88 | 120.10 ▲2.07 |
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
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
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 items
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sw-post-views-count/admin/admin-functions.php:68
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/sw-post-views-count/sw-post-views-count.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: post views, wordpress post view count
sw-post-views-count/sw-post-views-count.php 92% from 13 tests
The main PHP script in "SW Post Views Count" version 1.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Success! There were no dangerous files found in this plugin265 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 54 | 59 | 199 |
CSS | 1 | 13 | 1 | 66 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
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 | 11 | |
▷ Named functions | 11 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.26MB with 0.17MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/screenshot1.png | 98.64KB | 35.27KB | ▼ 64.24% |
images/screenshot2.png | 94.62KB | 31.24KB | ▼ 66.99% |
images/screenshot3.png | 68.98KB | 24.64KB | ▼ 64.28% |