Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.53MB] [CPU: ▼1.83ms] Passed 4 tests
Server-side resources used by Pre* Party Resource Hints
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.77 ▲0.31 | 36.11 ▼5.60 |
Dashboard /wp-admin | 3.91 ▲0.60 | 50.52 ▲4.18 |
Posts /wp-admin/edit.php | 3.96 ▲0.60 | 50.82 ▼1.29 |
Add New Post /wp-admin/post-new.php | 6.49 ▲0.60 | 95.99 ▼4.62 |
Media Library /wp-admin/upload.php | 3.83 ▲0.60 | 38.56 ▲5.29 |
Server storage [IO: ▲1.68MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 49 new files
Database: 1 new table, 18 new options
New tables |
---|
wp_pprh_table |
New WordPress options |
---|
theysaidso_admin_options |
pprh_prefetch_disableForLoggedInUsers |
can_compress_scripts |
widget_theysaidso_widget |
pprh_disable_wp_hints |
widget_recent-comments |
pprh_preconnect_allow_unauth |
pprh_prefetch_ignoreKeywords |
pprh_preconnect_set |
pprh_prefetch_max_prefetches |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Pre* Party Resource Hints
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲48 | 14.72 ▲0.33 | 2.02 ▲0.01 | 41.52 ▼1.89 |
Dashboard /wp-admin | 2,195 ▲18 | 5.50 ▼0.07 | 88.71 ▼11.97 | 85.93 ▲40.01 |
Posts /wp-admin/edit.php | 2,115 ▲15 | 1.98 ▲0.03 | 39.89 ▼1.24 | 38.07 ▲1.23 |
Add New Post /wp-admin/post-new.php | 1,554 ▲28 | 23.23 ▲0.04 | 669.21 ▲40.40 | 54.45 ▼2.60 |
Media Library /wp-admin/upload.php | 1,415 ▲21 | 4.17 ▼0.07 | 99.93 ▼1.09 | 74.48 ▲28.72 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: These screenshots lack descriptions #5, #6 in pre-party-browser-hints/assets to your readme.txt
pre-party-browser-hints/pre-party-browser-hints.php Passed 13 tests
Analyzing the main PHP file in "Pre* Party Resource Hints" version 1.8.18
130 characters long description:
Take advantage of the browser resource hints DNS-Prefetch, Prerender, Preconnect, Prefetch, and Preload to improve page load time.
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
Everything looks great! No dangerous files found in this plugin4,469 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 736 | 577 | 2,994 |
PO File | 2 | 132 | 137 | 691 |
JavaScript | 4 | 143 | 40 | 599 |
Sass | 1 | 38 | 0 | 184 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 16.14 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 132.00 |
Average method complexity | 2.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 21 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 219 | |
▷ Static methods | 44 | 20.09% |
▷ Public methods | 161 | 73.52% |
▷ Protected methods | 26 | 11.87% |
▷ Private methods | 32 | 14.61% |
Functions | 6 | |
▷ Named functions | 5 | 83.33% |
▷ Anonymous functions | 1 | 16.67% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.12MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/preload.png | 22.92KB | 10.38KB | ▼ 54.73% |
images/prerender.png | 7.78KB | 4.61KB | ▼ 40.70% |
images/lightning.png | 0.62KB | 0.56KB | ▼ 10.17% |
images/dns-prefetch.png | 49.11KB | 11.92KB | ▼ 75.72% |
images/preconnect.png | 44.57KB | 11.69KB | ▼ 73.77% |