Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼5.14ms] Passed 4 tests
A check of server-side resources used by WP Avertere
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.15 ▼3.04 |
Dashboard /wp-admin | 3.37 ▲0.07 | 48.45 ▼5.23 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 49.92 ▲1.46 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 91.26 ▼12.21 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.41 ▼0.07 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
wp_avertere_settings |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for WP Avertere
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.18 ▼0.23 | 1.65 ▼0.33 | 43.52 ▼0.97 |
Dashboard /wp-admin | 2,195 ▲21 | 5.62 ▼0.03 | 90.00 ▲1.76 | 40.35 ▲3.19 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.03 | 40.06 ▲2.50 | 35.78 ▲1.79 |
Add New Post /wp-admin/post-new.php | 6,288 ▲4,759 | 21.07 ▼2.14 | 880.86 ▲198.49 | 86.31 ▲31.46 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.19 ▼0.03 | 99.56 ▼20.80 | 43.41 ▼7.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
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)
The smoke test was a success, however most plugin functionality was not tested
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 fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-avertere/wp-avertere.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: Add an image for screenshot #1 (Edit Post *Redirect This Post* meta box; unsupported format URL.)
wp-avertere/wp-avertere.php Passed 13 tests
"WP Avertere" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
123 characters long description:
Set up and manage an HTTP 301/302 Redirect from the URL of any post type to another URL, either on your site or externally.
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 plugin454 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 96 | 125 | 337 |
PO File | 1 | 14 | 13 | 44 |
CSS | 2 | 4 | 0 | 38 |
JavaScript | 2 | 3 | 0 | 35 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 4.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 94.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.26% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 2 | 16.67% |
▷ Class constants | 10 | 83.33% |
▷ Public constants | 10 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/success.png | 0.43KB | 0.49KB | 0.00% |
images/warning.png | 0.57KB | 0.67KB | 0.00% |
images/error.png | 0.54KB | 0.66KB | 0.00% |