Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲1.23MB] [CPU: ▲2.41ms] Passed 4 tests
This is a short check of server-side resources used by Liveblog
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.70 ▲1.24 | 45.91 ▲6.21 |
Dashboard /wp-admin | 4.52 ▲1.22 | 48.00 ▼2.14 |
Posts /wp-admin/edit.php | 4.64 ▲1.28 | 53.37 ▲2.68 |
Add New Post /wp-admin/post-new.php | 7.14 ▲1.26 | 90.59 ▲2.87 |
Media Library /wp-admin/upload.php | 4.44 ▲1.21 | 43.73 ▲9.25 |
Hashtags /wp-admin/edit-tags.php?taxonomy=hashtags | 4.43 | 36.34 |
Server storage [IO: ▲30.78MB] [DB: ▲0.00MB] 67% from 3 tests
Filesystem and database footprint
These are issues you should consider
- Total filesystem usage should be limited to 25MB (currently using 30.78MB)
Filesystem: 176 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
liveblog_rewrites_version |
widget_theysaidso_widget |
widget_liveblog-key-events-widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Liveblog
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.59 ▼0.71 | 1.83 ▲0.18 | 42.90 ▼6.28 |
Dashboard /wp-admin | 2,213 ▲28 | 5.90 ▲0.95 | 106.28 ▼12.74 | 41.33 ▼1.68 |
Posts /wp-admin/edit.php | 2,157 ▲68 | 2.02 ▼0.03 | 37.31 ▼5.45 | 35.28 ▼1.93 |
Add New Post /wp-admin/post-new.php | 6,531 ▲4,995 | 20.24 ▼3.00 | 879.89 ▲201.11 | 58.43 ▲5.78 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.18 ▼0.06 | 93.68 ▼4.59 | 41.78 ▼3.93 |
Hashtags /wp-admin/edit-tags.php?taxonomy=hashtags | 1,241 | 2.13 | 25.88 | 28.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 8 options in the database
- can_compress_scripts
- db_upgraded
- liveblog_rewrites_version
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_liveblog-key-events-widget
- widget_recent-posts
Smoke tests 50% 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)
Good news, no errors were detected
SRP 0% 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 fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/liveblog/templates/restrict-manage-posts.php
- 29× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Embed' not found in wp-content/plugins/liveblog/classes/class-wpcom-liveblog-entry-embed.php:8
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/liveblog/templates/amp/author.php:2
- > PHP Fatal error
Uncaught Error: Class 'WPCOM_Liveblog_Lazyloader' not found in wp-content/plugins/liveblog/templates/liveblog-loop.php:18
- > PHP Notice
Undefined variable: title in wp-content/plugins/liveblog/templates/liveblog-key-events.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/liveblog/templates/liveblog-key-single-list.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/liveblog/templates/old-wp-notice.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_kses_post() in wp-content/plugins/liveblog/templates/lazyload-notice.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/liveblog/templates/liveblog-form.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/liveblog/templates/liveblog-key-single-timeline.php:1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/liveblog/templates/amp/feed.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: liveblog
liveblog/liveblog.php Passed 13 tests
Analyzing the main PHP file in "Liveblog" version 1.9.6
106 characters long description:
Empowers website owners to provide rich and engaging live event coverage to a large, distributed audience.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected24,722 lines of code in 157 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 1 | 0 | 0 | 13,322 |
PHP | 37 | 1,105 | 2,379 | 4,710 |
JavaScript | 77 | 645 | 379 | 4,301 |
Sass | 30 | 217 | 8 | 1,297 |
PO File | 8 | 357 | 395 | 957 |
CSS | 4 | 26 | 9 | 135 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 18.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 145.00 |
Average method complexity | 2.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 1 | 4.76% |
▷ Concrete classes | 20 | 95.24% |
▷ Final classes | 1 | 5.00% |
Methods | 287 | |
▷ Static methods | 197 | 68.64% |
▷ Public methods | 246 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 41 | 14.29% |
Functions | 6 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 6 | 100.00% |
Constants | 32 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 32 | 100.00% |
▷ Public constants | 32 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 7.86MB with 6.38MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
docs/LazyLoad.png | 1,638.64KB | 315.38KB | ▼ 80.75% |
docs/CRUD.png | 2,792.14KB | 457.17KB | ▼ 83.63% |
docs/Preview.png | 557.84KB | 109.94KB | ▼ 80.29% |
docs/EntriesBetweenTimestamps.png | 1,519.19KB | 291.71KB | ▼ 80.80% |
docs/SingleEntry.png | 1,540.04KB | 301.74KB | ▼ 80.41% |