Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼3.14ms] Passed 4 tests
This is a short check of server-side resources used by CB News Ticker
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 35.10 ▼4.24 |
Dashboard /wp-admin | 3.38 ▲0.07 | 45.35 ▼5.84 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 48.19 ▲2.53 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 91.95 ▼1.90 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.64 ▼0.56 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
CB News Ticker: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,891 ▲156 | 13.97 ▼0.40 | 9.43 ▲7.69 | 39.05 ▼9.56 |
Dashboard /wp-admin | 2,207 ▲22 | 5.86 ▲0.77 | 96.43 ▼19.44 | 42.22 ▼5.87 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 1.98 ▼0.03 | 39.56 ▲0.51 | 35.55 ▲0.09 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 17.56 ▼5.59 | 668.92 ▲4.74 | 64.41 ▲5.75 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.17 ▲0.00 | 95.91 ▼7.79 | 42.68 ▼6.97 |
CB News Ticker /wp-admin/cb_news_ticker.php | 26 | 0.44 | 0.10 | 13.99 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/cb_news_ticker.php
- > Network (severe)
wp-admin/cb_news_ticker.php - 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
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: popular post, display post, hot post, shortcode
cb-news-ticker/cb-news-ticker.php Passed 13 tests
The entry point to "CB News Ticker" version 1.0 is a PHP file that has certain tags in its header comment area
53 characters long description:
Display popular post using shortcode [cb-news-ticker]
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin294 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 91 | 42 | 208 |
CSS | 2 | 19 | 3 | 74 |
JavaScript | 2 | 8 | 1 | 12 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.22MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot.png | 60.41KB | 23.49KB | ▼ 61.12% |
assets/screenshot-1.png | 47.54KB | 25.54KB | ▼ 46.27% |
assets/screenshot-2.png | 52.83KB | 20.20KB | ▼ 61.76% |
assets/screenshot-3.png | 58.12KB | 22.62KB | ▼ 61.09% |
assets/arrow.png | 9.40KB | 9.47KB | 0.00% |