Benchmarks
Plugin footprint 48% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.70MB] [CPU: ▼31.30ms] Passed 4 tests
A check of server-side resources used by WP Views Counter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 43.96 ▲0.04 |
Dashboard /wp-admin | 3.25 ▼0.06 | 27.01 ▼25.13 |
Posts /wp-admin/edit.php | 3.25 ▼0.11 | 27.83 ▼22.23 |
Add New Post /wp-admin/post-new.php | 3.25 ▼2.64 | 29.51 ▼69.99 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 26.36 ▼7.85 |
WP Views Counter /wp-admin/options-general.php?page=WPeCounter | 3.25 | 26.21 |
Server storage [IO: ▲0.50MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_wpecounter |
WPeCounter_db_version |
widget_recent-comments |
WPeCounter_Options |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Views Counter
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.61 ▼0.61 | 4.70 ▲2.95 | 44.80 ▲6.76 |
Dashboard /wp-admin | 2,212 ▲24 | 5.85 ▲0.99 | 112.80 ▼0.12 | 43.58 ▼3.64 |
Posts /wp-admin/edit.php | 2,126 ▲37 | 2.02 ▲0.02 | 37.80 ▲0.30 | 35.91 ▲2.00 |
Add New Post /wp-admin/post-new.php | 1,547 ▲19 | 18.24 ▼4.91 | 670.77 ▲56.63 | 51.89 ▼3.14 |
Media Library /wp-admin/upload.php | 1,397 ▲12 | 4.18 ▼0.06 | 97.92 ▼12.95 | 44.84 ▼4.52 |
WP Views Counter /wp-admin/options-general.php?page=WPeCounter | 915 | 2.03 | 26.89 | 30.01 |
Uninstaller [IO: ▲0.50MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the followingThe uninstall procedure has failed, leaving 10 options in the database
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/wpecounter/includes/class-views.php+253
Undefined index: attachment
- The plugin did not uninstall successfully, leaving 22 files (0.50MB) in the plugin directory
- (new file) includes/scripts.php
- (new file) includes/settings.php
- (new file) includes/class-views.php
- (new file) LICENSE
- (new file) assets/css/settings.css
- (new file) includes/plugin-utils.php
- (new file) assets/js/settings.js
- (new file) includes/functions.php
- (new file) includes/version.php
- (new file) README.md
- ...
- WPeCounter_db_version
- widget_theysaidso_widget
- db_upgraded
- widget_wpecounter
- recovery_mode_email_last_sent
- WPeCounter_Options
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=WPeCounter
- > Notice in wp-content/plugins/wpecounter/includes/class-views.php+253
Undefined index: attachment
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
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wpecounter/includes/widget.php:8
- > 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 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
- Screenshots: Add an image for screenshot #1 (Legacy Widget to Display Popular Posts (types).)
wpecounter/wpecounter.php 92% from 13 tests
This is the main PHP file of "WP Views Counter" version 2.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 146 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,042 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 230 | 516 | 798 |
PO File | 2 | 85 | 132 | 227 |
Markdown | 1 | 17 | 0 | 17 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 11.14 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 2.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 17 | 34.00% |
▷ Public methods | 47 | 94.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 6.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
3 compressed PNG files occupy 0.42MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 103.59KB | 103.65KB | 0.00% |
screenshot-3.png | 176.43KB | 175.86KB | 0.32% |
screenshot-2.png | 148.45KB | 148.61KB | 0.00% |