Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼2.31ms] Passed 4 tests
A check of server-side resources used by WP-Revive Adserver
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 43.45 ▲5.30 |
Dashboard /wp-admin | 3.41 ▲0.11 | 52.56 ▼0.37 |
Posts /wp-admin/edit.php | 3.52 ▲0.17 | 50.99 ▼1.30 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 92.27 ▼11.35 |
Media Library /wp-admin/upload.php | 3.33 ▲0.11 | 40.01 ▲3.77 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 29 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_wprevive_vast_file |
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
wp-revive_version |
widget_theysaidso_widget |
wprevive_activation_redirect |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for WP-Revive Adserver
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲81 | 13.52 ▼0.86 | 1.87 ▼0.28 | 44.61 ▲0.22 |
Dashboard /wp-admin | 2,236 ▲48 | 4.84 ▼0.07 | 113.93 ▲13.43 | 43.92 ▼0.25 |
Posts /wp-admin/edit.php | 2,116 ▲24 | 1.99 ▲0.02 | 36.65 ▼6.76 | 35.31 ▼0.33 |
Add New Post /wp-admin/post-new.php | 1,550 ▲17 | 23.05 ▼0.39 | 628.28 ▼53.15 | 48.36 ▼15.94 |
Media Library /wp-admin/upload.php | 1,415 ▲27 | 4.16 ▲0.04 | 101.85 ▼1.66 | 41.83 ▼5.98 |
VAST 2 Campaigns /wp-admin/wp-revive.php?page=wprevive_vast_campaigns | 26 | 0.44 | 0.12 | 14.39 |
WP-Revive /wp-admin/wp-revive.php | 26 | 0.44 | 0.09 | 5.11 |
VAST 2 Convert /wp-admin/wp-revive.php?page=wprevive_vast_convert | 26 | 0.44 | 0.07 | 9.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie tables were found after uninstall: 1 table
- wp_wprevive_vast_file
- Zombie WordPress options detected upon uninstall: 8 options
- can_compress_scripts
- wp-revive_version
- wprevive_activation_redirect
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/wp-revive-adserver/inc/panels/wprevive-general-panel.php:11
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/wp-revive.php?page=wprevive_vast_campaigns
- > Network (severe)
wp-admin/wp-revive.php?page=wprevive_vast_campaigns - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/wp-revive.php
- > Network (severe)
wp-admin/wp-revive.php - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/wp-revive.php?page=wprevive_vast_convert
- > Network (severe)
wp-admin/wp-revive.php?page=wprevive_vast_convert - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== wp-revive-adserver ===
)
wp-revive-adserver/wp-revive.php 85% from 13 tests
The main file in "WP-Revive Adserver" v. 2.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
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-revive-adserver.php" instead of "wp-revive.php")
- Description: The description should be shorter than 140 characters (currently 177 characters long)
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
There were no executable files found in this plugin1,093 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 221 | 210 | 1,086 |
JSON | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
This is a very shot 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.33 |
Average class complexity | 13.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 4 | 8.70% |
▷ Public methods | 44 | 95.65% |
▷ Protected methods | 1 | 2.17% |
▷ Private methods | 1 | 2.17% |
Functions | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot.png | 80.27KB | 25.86KB | ▼ 67.78% |
inc/assets/WP_REVIVE_LGO.png | 8.34KB | 3.85KB | ▼ 53.85% |
assets/banner-772x250.png | 31.56KB | 13.24KB | ▼ 58.05% |
assets/icon-128x128.png | 9.72KB | 4.52KB | ▼ 53.52% |