Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼8.11ms] Passed 4 tests
Server-side resources used by 404 Image Redirection (Replace Broken Images)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 46.20 ▲2.74 |
Dashboard /wp-admin | 3.41 ▲0.11 | 53.31 ▼5.46 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 53.67 ▼0.06 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 89.16 ▼29.10 |
Media Library /wp-admin/upload.php | 3.34 ▲0.10 | 41.06 ▲2.18 |
Existing WP Docs Orders /wp-admin/admin.php?page=broken_image_change | 3.34 | 44.31 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 17 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_BIR_replace_an_image |
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
404 Image Redirection (Replace Broken Images): an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲40 | 14.34 ▼0.34 | 1.75 ▼0.19 | 47.25 ▲3.67 |
Dashboard /wp-admin | 2,210 ▲33 | 5.62 ▲0.10 | 86.77 ▼3.98 | 40.58 ▼3.53 |
Posts /wp-admin/edit.php | 2,115 ▲12 | 2.02 ▲0.00 | 36.38 ▼3.87 | 34.64 ▲0.42 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 23.45 ▲0.22 | 684.45 ▲12.67 | 56.76 ▲4.60 |
Media Library /wp-admin/upload.php | 1,415 ▲12 | 4.23 ▲0.10 | 101.03 ▼7.86 | 44.01 ▲0.63 |
Existing WP Docs Orders /wp-admin/admin.php?page=broken_image_change | 1,271 | 3.89 | 73.67 | 40.58 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie tables were found after uninstall: 1 table
- wp_BIR_replace_an_image
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
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)
Good news, no errors were detected
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
- 2× 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/broken-images-redirection/admin/setting.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/broken-images-redirection/admin/change.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Screenshots: These screenshots do not have images: #1 (Example), #2 (General Options), #3 (Custom Redirection)
broken-images-redirection/broken-images-redirection.php 85% from 13 tests
"404 Image Redirection (Replace Broken Images)" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Domain Path: The domain path points to a folder that does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin935 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 110 | 16 | 629 |
JavaScript | 2 | 11 | 14 | 210 |
CSS | 2 | 19 | 7 | 96 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 22.33 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 4.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 PNG files occupy 0.10MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 62.96KB | 23.53KB | ▼ 62.63% |
screenshot-1.png | 10.51KB | 5.18KB | ▼ 50.77% |
assets/images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
assets/images/sort_desc.png | 0.15KB | 0.25KB | 0.00% |
assets/images/sort_both.png | 0.20KB | 0.29KB | 0.00% |