Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼0.28MB] [CPU: ▼275.91ms] Passed 4 tests
An overview of server-side resources used by News ticker
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.81 ▲0.09 | 31.47 ▲10.26 |
Dashboard /wp-admin | 3.12 ▲0.07 | 42.42 ▼7.17 |
Posts /wp-admin/edit.php | 3.17 ▲0.07 | 42.54 ▼1.56 |
Add New Post /wp-admin/post-new.php | 4.10 ▼1.33 | 41.82 ▼1,086.19 |
Media Library /wp-admin/upload.php | 3.06 ▲0.06 | 30.34 ▼8.71 |
Add New News /wp-admin/post-new.php?post_type=comet_news | 3.00 | 32.32 |
News Options /wp-admin/edit.php?post_type=comet_news&page=breaking_news_slug | 3.01 | 29.23 |
News /wp-admin/edit.php?post_type=comet_news | 3.10 | 34.12 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for News ticker
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,839 ▲233 | 16.40 ▲0.80 | 11.25 ▲1.18 | 46.49 ▲1.87 |
Dashboard /wp-admin | 2,973 ▲120 | 5.88 ▲0.01 | 138.99 ▲4.73 | 111.45 ▲2.60 |
Posts /wp-admin/edit.php | 2,746 ▲40 | 2.70 ▲0.02 | 64.02 ▼3.12 | 88.57 ▼8.00 |
Add New Post /wp-admin/post-new.php | 1,679 ▼359 | 18.82 ▼0.40 | 365.56 ▼17.96 | 105.52 ▼2.24 |
Media Library /wp-admin/upload.php | 1,815 ▲43 | 5.02 ▼0.01 | 139.06 ▼17.17 | 114.60 ▼11.48 |
Add New News /wp-admin/post-new.php?post_type=comet_news | 1,992 | 3.30 | 105.99 | 78.97 |
News Options /wp-admin/edit.php?post_type=comet_news&page=breaking_news_slug | 1,068 | 2.09 | 56.15 | 74.73 |
News /wp-admin/edit.php?post_type=comet_news | 1,400 | 2.61 | 62.08 | 68.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/post-new.php?post_type=comet_news
- > Notice in wp-content/plugins/news-ticker-tj/news-ticker-tj.php+228
Undefined index: news_cat
- > GET request to /wp-admin/post-new.php?post_type=comet_news
- > Notice in wp-content/plugins/news-ticker-tj/news-ticker-tj.php+229
Undefined index: news_content
- > GET request to /wp-admin/post-new.php?post_type=comet_news
- > Notice in wp-content/plugins/news-ticker-tj/news-ticker-tj.php+230
Undefined index: news_link
- > GET request to /wp-admin/edit.php?post_type=comet_news&page=breaking_news_slug
- > Notice in wp-content/plugins/news-ticker-tj/news-ticker-tj.php+113
Undefined index: breaking_news_text
- > GET request to /wp-admin/edit.php?post_type=comet_news&page=breaking_news_slug
- > Notice in wp-content/plugins/news-ticker-tj/news-ticker-tj.php+125
Undefined index: breaking_news_text_color
- > GET request to /wp-admin/edit.php?post_type=comet_news&page=breaking_news_slug
- > Notice in wp-content/plugins/news-ticker-tj/news-ticker-tj.php+137
Undefined index: breaking_news_text_bg_color
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/news-ticker-tj/news-ticker-tj.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/edit.php?post_type=comet_news&page=breaking_news_slug
- > Rendering (warning) in unknown
/wp-admin/edit.php?post_type=comet_news&page=breaking_news_slug 155 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
- > GET request to /wp-admin/edit.php?post_type=comet_news&page=breaking_news_slug
- > Rendering (warning) in unknown
/wp-admin/edit.php?post_type=comet_news&page=breaking_news_slug 159 The specified value "" does not conform to the required format. The format is "#rrggbb" where rr, gg, bb are two-digit hexadecimal numbers.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: Screenshot #2 (add News) image required
news-ticker-tj/news-ticker-tj.php 92% from 13 tests
"News ticker" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected462 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 50 | 14 | 235 |
PHP | 2 | 148 | 81 | 192 |
CSS | 1 | 17 | 47 | 35 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.05 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.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 1 test
Image compression Passed 1 test
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/bn-arrows.png | 1.42KB | 0.60KB | ▼ 57.85% |