Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲1.68MB] [CPU: ▲8.46ms] Passed 4 tests
This is a short check of server-side resources used by WhereUsed
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.92 ▲1.46 | 53.47 ▲9.64 |
Dashboard /wp-admin | 5.05 ▲1.75 | 56.25 ▲5.34 |
Posts /wp-admin/edit.php | 5.10 ▲1.75 | 58.32 ▲9.04 |
Add New Post /wp-admin/post-new.php | 7.78 ▲1.89 | 101.68 ▲9.81 |
Media Library /wp-admin/upload.php | 4.98 ▲1.75 | 50.67 ▲12.45 |
WhereUsed /wp-admin/tools.php?page=where-used | 5.03 | 44.44 |
Server storage [IO: ▲1.31MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 83 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_whereused_references |
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by WhereUsed
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲72 | 13.74 ▼0.82 | 4.92 ▲2.73 | 45.79 ▼7.45 |
Dashboard /wp-admin | 2,213 ▲28 | 5.86 ▲0.00 | 96.35 ▼12.42 | 39.03 ▼2.12 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.04 ▲0.08 | 37.05 ▲3.49 | 33.30 ▼4.62 |
Add New Post /wp-admin/post-new.php | 6,308 ▲4,775 | 19.47 ▼3.83 | 906.52 ▲203.13 | 60.38 ▼6.70 |
Media Library /wp-admin/upload.php | 1,389 ▼2 | 4.24 ▲0.06 | 104.89 ▲5.75 | 41.76 ▼1.51 |
WhereUsed /wp-admin/tools.php?page=where-used | 1,298 | 5.56 | 59.97 | 85.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_whereused_references
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% 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 50% 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 items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/where-used/uninstall.php
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/tools.php?page=where-used
- > Console-api (severe) in wp-content/plugins/where-used/library/js//chart.min.js+12:92809
Failed to create chart: can't acquire context from the given item
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: seo, broken links, redirect, broken images, where used
where-used/where-used.php 92% from 13 tests
The main PHP script in "WhereUsed" version 1.4.0 is automatically included on every request by WordPress
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 195 characters long)
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
There were no executable files found in this plugin10,289 lines of code in 58 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 47 | 3,788 | 4,352 | 8,765 |
CSS | 2 | 167 | 9 | 813 |
JavaScript | 6 | 256 | 258 | 552 |
SVG | 1 | 1 | 1 | 158 |
HTML | 2 | 0 | 1 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 38.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 170.00 |
Average method complexity | 4.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 35 | |
▷ Abstract classes | 12 | 34.29% |
▷ Concrete classes | 23 | 65.71% |
▷ Final classes | 12 | 52.17% |
Methods | 388 | |
▷ Static methods | 227 | 58.51% |
▷ Public methods | 317 | 81.70% |
▷ Protected methods | 49 | 12.63% |
▷ Private methods | 22 | 5.67% |
Functions | 5 | |
▷ Named functions | 2 | 40.00% |
▷ Anonymous functions | 3 | 60.00% |
Constants | 80 | |
▷ Global constants | 80 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.33MB with 0.21MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 99.71KB | 34.83KB | ▼ 65.07% |
screenshot-1.png | 149.91KB | 52.70KB | ▼ 64.85% |
screenshot-3.png | 84.81KB | 28.64KB | ▼ 66.23% |