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.01MB] [CPU: ▼8.80ms] Passed 4 tests
Server-side resources used by LH HTTP/2 Server Push
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 38.72 ▲0.34 |
Dashboard /wp-admin | 3.32 ▼0.02 | 44.95 ▼11.55 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 48.17 ▲0.95 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 79.23 ▼22.44 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 32.33 ▼1.56 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for LH HTTP/2 Server Push
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.76 ▲0.45 | 1.75 ▲0.04 | 45.99 ▲6.39 |
Dashboard /wp-admin | 2,209 ▲23 | 4.87 ▼0.10 | 97.78 ▼9.84 | 41.03 ▼0.15 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.05 ▲0.03 | 33.26 ▼1.94 | 33.32 ▼1.27 |
Add New Post /wp-admin/post-new.php | 1,536 ▲15 | 23.43 ▲0.28 | 649.56 ▼28.28 | 50.14 ▼17.28 |
Media Library /wp-admin/upload.php | 1,379 ▼12 | 4.21 ▼0.08 | 99.73 ▼0.16 | 43.30 ▼2.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 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
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lh-http2-server-push/lh-http2-server-push.php:243
- > 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)
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: preload, prefetch, server push, http2, performance
lh-http2-server-push/lh-http2-server-push.php Passed 13 tests
The main PHP file in "LH HTTP/2 Server Push" ver. 1.02 adds more information about the plugin and also serves as the entry point for this plugin
86 characters long description:
HTTP/2 Server Push Optimization for JavaScript and CSS resources enqueued in the page.
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
Good job! No executable or dangerous file extensions detected99 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 113 | 39 | 99 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 2 | 25.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 75.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin