Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.53ms] Passed 4 tests
This is a short check of server-side resources used by Auto Replace Broken Links For Youtube
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.95 ▲5.30 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.61 ▼2.92 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 42.82 ▼1.53 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 83.49 ▼8.15 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.65 ▼1.51 |
Auto Replace Broken Links For Youtube /wp-admin/options-general.php?page=auto-replace-broken-links-for-youtube | 3.21 | 32.33 |
Server storage [IO: ▲0.60MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 27 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_auto_replace_broken_links_for_youtube |
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Auto Replace Broken Links For Youtube
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲51 | 14.26 ▼0.38 | 2.32 ▲0.64 | 43.51 ▲0.56 |
Dashboard /wp-admin | 2,213 ▲36 | 5.60 ▼0.05 | 85.36 ▲0.25 | 38.68 ▼6.69 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 2.03 ▲0.02 | 38.38 ▲3.64 | 38.22 ▲0.43 |
Add New Post /wp-admin/post-new.php | 1,556 ▲30 | 23.09 ▼0.61 | 674.21 ▼20.57 | 64.06 ▼0.47 |
Media Library /wp-admin/upload.php | 1,421 ▲24 | 4.19 ▼0.01 | 100.16 ▲0.36 | 46.80 ▲1.94 |
Auto Replace Broken Links For Youtube /wp-admin/options-general.php?page=auto-replace-broken-links-for-youtube | 876 | 2.17 | 28.16 | 29.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/auto-replace-broken-links-for-youtube/auto-replace-broken-links-for-youtube.php+417
Undefined variable: plugin_folder_name
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/auto-replace-broken-links-for-youtube/admin/auto-replace-broken-links-for-youtube-admin.php:127
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: external link, broken link, links, internal link, broken link youtube
auto-replace-broken-links-for-youtube/auto-replace-broken-links-for-youtube.php 77% from 13 tests
"Auto Replace Broken Links For Youtube" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 369 characters long)
- Requires at least: The required version number did not match the one declared in readme.txt ("5.3" instead of "5.6")
- Requires PHP: Please use periods and digits for the required version (ex. "7.0" instead of "5.6 or later")
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 plugin782 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 5 | 170 | 180 | 405 |
PHP | 4 | 51 | 164 | 377 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.49MB with 0.32MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/screenshot-1-mobile-device.png | 57.05KB | 18.87KB | ▼ 66.92% |
assets/banner-1544x500.png | 45.56KB | 16.21KB | ▼ 64.43% |
assets/screenshot-1.png | 74.30KB | 32.11KB | ▼ 56.78% |
assets/banner-772x250.png | 35.34KB | 11.42KB | ▼ 67.69% |
admin/assets/screenshot-1-desktop-device.png | 153.57KB | 48.72KB | ▼ 68.27% |