Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼139.72ms] Passed 4 tests
An overview of server-side resources used by WP Replace Unlicensed and Broken Images
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 44.31 ▲21.45 |
Dashboard /wp-admin | 3.08 ▲0.03 | 52.36 ▲9.52 |
Posts /wp-admin/edit.php | 3.20 ▲0.09 | 47.98 ▼0.22 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.01 | 92.21 ▼568.94 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 37.71 ▲0.78 |
Replace Unlicensed and Broken Images /wp-admin/options-general.php?page=cks_rui_main_menu | 3.00 | 31.04 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 35 new files
Database: no new tables, 3 new options
New WordPress options |
---|
cks_rui_options |
category_children |
cks_rui_version |
Browser metrics Passed 4 tests
A check of browser resources used by WP Replace Unlicensed and Broken Images
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,687 ▲91 | 16.46 ▲0.86 | 9.52 ▼1.18 | 57.51 ▲8.18 |
Dashboard /wp-admin | 2,979 ▲45 | 6.55 ▲0.54 | 151.33 ▼21.29 | 129.54 ▲6.33 |
Posts /wp-admin/edit.php | 2,865 ▲126 | 2.72 ▲0.00 | 73.20 ▲8.71 | 93.96 ▲0.68 |
Add New Post /wp-admin/post-new.php | 1,585 ▲4 | 18.55 ▲4.05 | 400.60 ▲5.21 | 141.04 ▲23.33 |
Media Library /wp-admin/upload.php | 1,832 ▲25 | 5.39 ▲0.34 | 137.22 ▼27.55 | 124.69 ▲6.22 |
Replace Unlicensed and Broken Images /wp-admin/options-general.php?page=cks_rui_main_menu | 2,514 | 2.96 | 74.73 | 238.08 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 1 option in the database
- category_children
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-replace-unlicensed-and-broken-images/admin.php
- > /wp-content/plugins/wp-replace-unlicensed-and-broken-images/cks_rui.php
- > /wp-content/plugins/wp-replace-unlicensed-and-broken-images/migrate.php
- > /wp-content/plugins/wp-replace-unlicensed-and-broken-images/uninstall.php
- 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-replace-unlicensed-and-broken-images/admin_extra.php:16
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=cks_rui_main_menu
- > Javascript (severe) in unknown
/wp-content/plugins/wp-replace-unlicensed-and-broken-images/js/cks_admin_url_select.js?ver=5.8.1 2:27 Uncaught TypeError: $(...).live is not a function
- > GET request to /wp-admin/options-general.php?page=cks_rui_main_menu
- > Javascript (severe) in unknown
/wp-content/plugins/wp-replace-unlicensed-and-broken-images/js/cks_rui_scripts.js?ver=5.8.1 43:18 Uncaught TypeError: $(...).live is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: seo, site errors, usage rights, dmca, copyright...
wp-replace-unlicensed-and-broken-images/cks_rui.php 85% from 13 tests
"WP Replace Unlicensed and Broken Images" version 1.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-replace-unlicensed-and-broken-images.php" instead of "cks_rui.php")
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin2,393 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 1,031 | 396 | 1,302 |
SVG | 4 | 4 | 4 | 607 |
CSS | 1 | 75 | 12 | 417 |
JavaScript | 3 | 42 | 19 | 67 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
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 | 62 | |
▷ Named functions | 62 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/digital_arts_alliance.png | 48.27KB | 80.76KB | 0.00% |
images/no_featured_image.png | 0.69KB | 0.31KB | ▼ 55.19% |
images/daa.png | 1.74KB | 1.34KB | ▼ 23.25% |
images/empty_image.png | 0.14KB | 0.08KB | ▼ 41.43% |
images/image_removed.png | 18.71KB | 8.70KB | ▼ 53.48% |