Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼5.65ms] Passed 4 tests
A check of server-side resources used by DNS Prefetch
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 40.09 ▲1.49 |
Dashboard /wp-admin | 3.37 ▲0.06 | 47.03 ▼2.01 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 47.45 ▼1.47 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 80.95 ▼20.61 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 34.21 ▲3.63 |
DNS Prefetch /wp-admin/options-general.php?page=dns-prefetch | 3.26 | 29.54 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
dpf |
Browser metrics Passed 4 tests
A check of browser resources used by DNS Prefetch
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲74 | 14.03 ▼0.32 | 2.12 ▲0.64 | 44.01 ▲5.29 |
Dashboard /wp-admin | 2,202 ▲22 | 5.62 ▼0.04 | 90.06 ▼3.17 | 39.18 ▼8.80 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.96 ▼0.06 | 38.92 ▲1.85 | 36.53 ▲1.69 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.02 ▲0.13 | 683.36 ▲10.85 | 58.55 ▲3.36 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.25 ▲0.03 | 93.71 ▼1.84 | 42.19 ▼4.23 |
DNS Prefetch /wp-admin/options-general.php?page=dns-prefetch | 878 | 2.30 | 22.82 | 42.07 |
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
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/dns-prefetch/dns-prefetch.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 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
3 plugin tags: prefetch, optimization, dns
dns-prefetch/dns-prefetch.php Passed 13 tests
"DNS Prefetch" version 0.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
43 characters long description:
Add DNS prefetching meta tags to your site.
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 plugin227 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 14 | 37 | 222 |
CSS | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
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 | 25 | |
▷ Named functions | 25 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/globe.png | 8.54KB | 3.77KB | ▼ 55.85% |
images/settings.png | 2.11KB | 2.31KB | 0.00% |
images/support.png | 5.03KB | 2.79KB | ▼ 44.54% |