Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.93MB] [CPU: ▼35.31ms] Passed 4 tests
This is a short check of server-side resources used by Wp postviews data delete
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.81 ▼1.69 |
Dashboard /wp-admin | 3.01 ▼0.29 | 22.33 ▼28.20 |
Posts /wp-admin/edit.php | 3.01 ▼0.34 | 25.86 ▼22.77 |
Add New Post /wp-admin/post-new.php | 3.01 ▼2.87 | 21.66 ▼72.44 |
Media Library /wp-admin/upload.php | 3.01 ▼0.21 | 20.98 ▼17.81 |
Wp-postviews Data delete /wp-admin/options-general.php?page=wpajans_wppvdcr | 3.01 | 23.45 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Wp postviews data delete: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.40 ▲0.45 | 1.67 ▲0.11 | 45.96 ▼5.22 |
Dashboard /wp-admin | 2,196 ▲19 | 5.54 ▼0.03 | 86.33 ▼6.58 | 39.12 ▼2.70 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.04 ▲0.04 | 35.07 ▼0.70 | 32.56 ▼7.36 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.42 ▲0.37 | 674.10 ▼14.64 | 52.35 ▼3.17 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.25 ▲0.03 | 99.43 ▼15.64 | 43.96 ▼5.00 |
Wp-postviews Data delete /wp-admin/options-general.php?page=wpajans_wppvdcr | 971 | 2.04 | 21.66 | 113.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wpajans_wppvdcr
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/options-general.php?page=wpajans_wppvdcr
- > Notice in wp-content/plugins/wp-postviews-data-delete/index.php+76
Undefined index: action
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
Almost there! Just fix the following items
- 1× 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/wp-postviews-data-delete/index.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: faster, wordpress, faster site, wordpress optimization, optimization
wp-postviews-data-delete/index.php 92% from 13 tests
The principal PHP file in "Wp postviews data delete" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-postviews-data-delete.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,318 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 197 | 55 | 1,077 |
PO File | 3 | 33 | 0 | 114 |
PHP | 1 | 17 | 11 | 93 |
JavaScript | 2 | 11 | 20 | 34 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
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 | 3 | |
▷ Named functions | 3 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.08MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/relatedposts/ArrowNavigationEffects-300x162.png | 43.32KB | 18.84KB | ▼ 56.51% |
images/dashboard.png | 1.56KB | 1.54KB | ▼ 1.13% |
images/settings.png | 1.52KB | 1.62KB | 0.00% |
images/moreplugins.png | 1.14KB | 1.14KB | 0.00% |
img/relatedposts/DotNavigationStyles-300x162.png | 34.69KB | 22.26KB | ▼ 35.83% |