Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.21MB] [CPU: ▼4.71ms] Passed 4 tests
A check of server-side resources used by JM Live Blog
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 40.35 ▲1.41 |
Dashboard /wp-admin | 3.52 ▲0.17 | 48.41 ▼7.86 |
Posts /wp-admin/edit.php | 3.63 ▲0.27 | 45.61 ▲1.83 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 82.38 ▼14.23 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 36.11 ▲2.73 |
Server storage [IO: ▲0.55MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 58 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_jm_live_blog_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for JM Live Blog
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,878 ▲128 | 13.50 ▼0.85 | 8.83 ▲7.22 | 40.84 ▲2.90 |
Dashboard /wp-admin | 2,195 ▲15 | 5.60 ▼0.07 | 96.76 ▲8.85 | 43.97 ▲1.81 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.97 ▼0.07 | 33.93 ▼2.28 | 34.28 ▼0.16 |
Add New Post /wp-admin/post-new.php | 6,665 ▲5,139 | 27.70 ▲3.90 | 889.04 ▲216.88 | 60.44 ▲8.86 |
Media Library /wp-admin/upload.php | 1,403 ▲9 | 4.17 ▼0.01 | 95.10 ▼5.23 | 40.95 ▼4.86 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_jm_live_blog_widget
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_block_wrapper_attributes() in wp-content/plugins/jm-live-blog/blocks/build/live-blog-block/template.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/jm-live-blog/public/partials/jm-live-blog-widget.php:23
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: blog, live blog, live updates, ajax
jm-live-blog/jm-live-blog.php 92% from 13 tests
The main PHP script in "JM Live Blog" version 2.1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 252 characters long)
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
There were no executable files found in this plugin2,413 lines of code in 45 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 193 | 595 | 823 |
JavaScript | 11 | 22 | 28 | 815 |
PO File | 6 | 126 | 150 | 411 |
CSS | 9 | 25 | 4 | 132 |
Sass | 1 | 0 | 0 | 105 |
Markdown | 3 | 22 | 0 | 79 |
JSON | 1 | 0 | 0 | 48 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 2.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 2 | 4.35% |
▷ Public methods | 38 | 82.61% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 17.39% |
Functions | 3 | |
▷ Named functions | 3 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.28MB with 0.13MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/jm-live-blog-logo.png | 128.72KB | 75.12KB | ▼ 41.64% |
images/jm-live-blog-logo.png | 160.85KB | 75.12KB | ▼ 53.30% |