Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.98ms] Passed 4 tests
Server-side resources used by Simple DNS Prefetch
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.28 ▼3.40 |
Dashboard /wp-admin | 3.34 ▲0.04 | 49.62 ▼0.54 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 47.89 ▼1.24 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 94.22 ▼5.88 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.36 ▼1.41 |
Simple DNS Prefetch /wp-admin/options-general.php?page=menu_simplednsprefetch | 3.23 | 35.15 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
sdp_prefetch_host_list |
sdp_meta_control |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
sdp_is_dns_disable |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple DNS Prefetch
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.69 ▲0.34 | 1.84 ▲0.12 | 41.54 ▼0.86 |
Dashboard /wp-admin | 2,202 ▲25 | 5.65 ▲0.11 | 90.81 ▼1.95 | 41.82 ▲0.33 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.96 ▼0.16 | 39.37 ▼0.53 | 34.55 ▼4.04 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.20 ▲0.01 | 636.70 ▼49.81 | 56.12 ▼1.76 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.19 ▼0.05 | 99.10 ▼17.82 | 46.60 ▼2.67 |
Simple DNS Prefetch /wp-admin/options-general.php?page=menu_simplednsprefetch | 871 | 2.17 | 24.79 | 28.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 9 options
- sdp_is_dns_disable
- widget_theysaidso_widget
- db_upgraded
- sdp_prefetch_host_list
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- sdp_meta_control
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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 fix the following items
- 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/simple-dns-prefetch/simple-dns-prefetch.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: speed, prefetch, dns-prefetch, optimization, dns
simple-dns-prefetch/simple-dns-prefetch.php Passed 13 tests
The principal PHP file in "Simple DNS Prefetch" v. 0.5.2 is loaded by WordPress automatically on each request
47 characters long description:
This plugin controls the DNS prefetch settings.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin149 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 42 | 23 | 149 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin