Benchmarks
Plugin footprint 83% 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: ▲0.17MB] [CPU: ▼12.82ms] Passed 4 tests
This is a short check of server-side resources used by JM Breaking News
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 43.72 ▲5.96 |
Dashboard /wp-admin | 3.43 ▲0.13 | 35.04 ▼20.15 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 39.13 ▼10.99 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 78.25 ▼22.40 |
Media Library /wp-admin/upload.php | 3.43 ▲0.21 | 36.97 ▲2.28 |
All Breaking News Items /wp-admin/edit.php?post_type=jm_breaking_news | 3.48 | 38.23 |
Add New /wp-admin/post-new.php?post_type=jm_breaking_news | 3.47 | 43.88 |
Server storage [IO: ▲1.24MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_jm_breaking_news_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
JM Breaking News: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲45 | 14.26 ▼0.09 | 1.73 ▲0.02 | 43.88 ▼1.78 |
Dashboard /wp-admin | 2,225 ▲45 | 5.62 ▲0.00 | 81.63 ▼6.77 | 38.40 ▼7.21 |
Posts /wp-admin/edit.php | 2,130 ▲27 | 1.95 ▼0.06 | 39.25 ▼1.22 | 40.38 ▲2.69 |
Add New Post /wp-admin/post-new.php | 6,395 ▲4,867 | 27.53 ▲4.44 | 915.54 ▲227.55 | 39.15 ▼15.45 |
Media Library /wp-admin/upload.php | 1,427 ▲27 | 4.21 ▲0.02 | 108.03 ▼4.65 | 45.14 ▲0.36 |
All Breaking News Items /wp-admin/edit.php?post_type=jm_breaking_news | 1,171 | 2.28 | 35.45 | 28.53 |
Add New /wp-admin/post-new.php?post_type=jm_breaking_news | 2,037 | 3.18 | 82.99 | 34.53 |
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
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_jm_breaking_news_widget
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=jm_breaking_news
- > User deprecated in wp-includes/functions.php+5828
Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
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
Almost there! Just fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/jm-breaking-news/breaking-news-widget.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/jm-breaking-news/public/partials/breaking-news-widget.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_custom() in wp-content/plugins/jm-breaking-news/admin/partials/breaking-news-meta-box.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/jm-breaking-news/blocks/build/breaking-news-block/template.php:6
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=jm_breaking_news
- > Network (severe)
wp-json/wp/v2/posts?per_page=25 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: banner, breaking news
jm-breaking-news/jm-breaking-news.php Passed 13 tests
The main PHP file in "JM Breaking News" ver. 2.1.0 adds more information about the plugin and also serves as the entry point for this plugin
121 characters long description:
Displays a breaking news banner, similar to that of CNN, with custom text and link on the webpage via a custom post type.
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
There were no executable files found in this plugin2,335 lines of code in 41 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 184 | 632 | 997 |
PO File | 6 | 240 | 251 | 725 |
JavaScript | 9 | 23 | 24 | 376 |
Markdown | 3 | 31 | 0 | 102 |
Sass | 1 | 2 | 0 | 88 |
JSON | 1 | 0 | 0 | 43 |
CSS | 4 | 0 | 3 | 4 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 6.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 2.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 50 | |
▷ Static methods | 2 | 4.00% |
▷ Public methods | 42 | 84.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 16.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
2 PNG files occupy 0.43MB with 0.31MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 318.13KB | 87.22KB | ▼ 72.58% |
screenshot-2.png | 126.95KB | 39.02KB | ▼ 69.26% |