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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼4.29ms] Passed 4 tests
A check of server-side resources used by Replace Asset Source
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 36.90 ▲1.37 |
Dashboard /wp-admin | 3.38 ▲0.07 | 44.44 ▼6.58 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 45.81 ▼4.33 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 80.26 ▼3.53 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.14 ▼2.73 |
Replace Asset Source /wp-admin/options-general.php?page=replace-third-party-asset-source-setting | 3.27 | 32.02 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Replace Asset Source
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.14 ▼0.09 | 1.72 ▲0.06 | 37.31 ▼2.26 |
Dashboard /wp-admin | 2,202 ▲21 | 5.58 ▼0.07 | 89.29 ▼9.64 | 39.19 ▼0.67 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▼0.04 | 38.53 ▲0.95 | 35.59 ▼0.12 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.48 ▲0.33 | 677.86 ▼33.85 | 49.36 ▼22.50 |
Media Library /wp-admin/upload.php | 1,404 ▲13 | 4.16 ▼0.00 | 104.20 ▼0.55 | 44.81 ▲0.08 |
Replace Asset Source /wp-admin/options-general.php?page=replace-third-party-asset-source-setting | 891 | 1.99 | 24.57 | 28.10 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=replace-third-party-asset-source-setting
- > Notice in wp-content/plugins/replace-third-party-asset-source/admin/class-replace-third-party-asset-source-admin.php+292
Trying to access array offset on value of type bool
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
5 plugin tags: script, replace javascript, replace css, style, asset
replace-third-party-asset-source/replace-third-party-asset-source.php 85% from 13 tests
The main PHP script in "Replace Asset Source" version 1.3.1 is automatically included on every request by WordPress
You should first fix the following items:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 285 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin519 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 163 | 155 | 391 |
JavaScript | 1 | 19 | 0 | 83 |
CSS | 1 | 8 | 0 | 45 |
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.28 |
Average class complexity | 9.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 2 | 5.71% |
▷ Public methods | 26 | 74.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 25.71% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
There are no PNG files in this plugin