Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼139.94ms] Passed 4 tests
This is a short check of server-side resources used by Display Post Views Count
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.03 ▲0.30 | 38.39 ▲17.15 |
Dashboard /wp-admin | 3.25 ▲0.19 | 44.66 ▼2.74 |
Posts /wp-admin/edit.php | 3.36 ▲0.25 | 46.41 ▲2.66 |
Add New Post /wp-admin/post-new.php | 5.61 ▲0.17 | 90.67 ▼559.99 |
Media Library /wp-admin/upload.php | 3.19 ▲0.19 | 32.89 ▲0.31 |
Post Views Count /wp-admin/options-general.php?page=display-post-views-count/viewscount-options.php | 3.23 | 30.66 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 2 new options
New WordPress options |
---|
views_options |
widget_views |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Display Post Views Count
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲102 | 15.78 ▲0.26 | 8.81 ▲0.01 | 52.65 ▲3.82 |
Dashboard /wp-admin | 2,978 ▲47 | 5.94 ▼0.04 | 140.43 ▼10.40 | 116.62 ▲1.74 |
Posts /wp-admin/edit.php | 2,767 ▲28 | 2.72 ▼0.00 | 66.13 ▲0.74 | 97.38 ▲5.55 |
Add New Post /wp-admin/post-new.php | 1,875 ▲260 | 19.19 ▼2.34 | 374.08 ▲103.13 | 106.63 ▲6.29 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.09 ▲0.07 | 159.07 ▲11.96 | 115.93 ▼6.46 |
Post Views Count /wp-admin/options-general.php?page=display-post-views-count/viewscount-options.php | 1,496 | 2.09 | 57.14 | 96.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
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 | 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/display-post-views-count/viewscount-options.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/display-post-views-count/display-post-views-count.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Donate link: Invalid url: ""
display-post-views-count/display-post-views-count.php 85% from 13 tests
"Display Post Views Count" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 163 characters long)
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,068 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 163 | 76 | 1,062 |
JavaScript | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 38 | |
▷ Named functions | 38 | 100.00% |
▷ Anonymous functions | 0 | 0.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected