Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.42MB] [CPU: ▲2.41ms] Passed 4 tests
This is a short check of server-side resources used by Ditty – Responsive News Tickers, Sliders, and Lists
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.37 | 45.49 ▲2.79 |
Dashboard /wp-admin | 3.74 ▲0.43 | 55.13 ▲2.80 |
Posts /wp-admin/edit.php | 3.79 ▲0.44 | 51.37 ▲0.85 |
Add New Post /wp-admin/post-new.php | 6.53 ▲0.65 | 107.84 ▲3.18 |
Media Library /wp-admin/upload.php | 3.65 ▲0.42 | 42.31 ▲6.17 |
Server storage [IO: ▲55.67MB] [DB: ▲0.01MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
These are issues you should consider
- Filesystem usage must be lower than 25MB (currently using 55.67MB)
Filesystem: 654 new files
Database: 2 new tables, 12 new options
New tables |
---|
wp_ditty_items |
wp_ditty_itemmeta |
New WordPress options |
---|
widget_ditty-widget |
widget_theysaidso_widget |
can_compress_scripts |
ditty_plugin_version |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
wp_ditty_itemmeta_db_version |
wp_ditty_items_db_version |
... |
Browser metrics Passed 4 tests
Ditty – Responsive News Tickers, Sliders, and Lists: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,892 ▲106 | 14.36 ▲0.16 | 1.62 ▼0.38 | 41.24 ▼3.81 |
Dashboard /wp-admin | 2,286 ▲109 | 5.50 ▼0.16 | 93.61 ▲3.34 | 41.23 ▼0.68 |
Posts /wp-admin/edit.php | 2,190 ▲90 | 2.02 ▲0.03 | 35.80 ▼0.73 | 34.92 ▲0.11 |
Add New Post /wp-admin/post-new.php | 6,432 ▲4,895 | 27.59 ▲9.50 | 879.75 ▲209.48 | 65.57 ▲1.34 |
Media Library /wp-admin/upload.php | 1,490 ▲90 | 4.17 ▲0.04 | 97.11 ▼13.79 | 44.48 ▼6.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_ditty_itemmeta
- wp_ditty_items
- This plugin did not uninstall successfully, leaving 12 options in the database
- db_upgraded
- widget_recent-comments
- wp_ditty_items_db_version
- widget_ditty-widget
- wp_ditty_itemmeta_db_version
- theysaidso_admin_options
- widget_theysaidso_widget
- ditty_licenses
- widget_recent-posts
- ditty_plugin_version_upgraded_from
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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 fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/ditty-news-ticker/legacy/inc/templates/play_pause.php
- 249× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ditty-news-ticker/legacy/inc/settings.php:18
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/ditty-news-ticker/vendor/composer/installers/src/Composer/Installers/KanboardInstaller.php:13
- > PHP Fatal error
Uncaught Error: Class 'Ditty_Field' not found in wp-content/plugins/ditty-news-ticker/includes/fields/ditty-field-file.php:12
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\CSSList\\CSSBlockList' not found in wp-content/plugins/ditty-news-ticker/vendor/sabberworm/php-css-parser/src/CSSList/AtRuleBlockList.php:11
- > PHP Fatal error
Uncaught Error: Class 'Ditty_Item_Type_Default' not found in wp-content/plugins/ditty-news-ticker/includes/class-ditty-item-type-wp-editor.php:12
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/ditty-news-ticker/vendor/composer/installers/src/Composer/Installers/ReIndexInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/ditty-news-ticker/vendor/composer/installers/src/Composer/Installers/PuppetInstaller.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/ditty-news-ticker/includes/layout-tag-hooks-posts.php:61
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/ditty-news-ticker/vendor/composer/installers/src/Composer/Installers/SiteDirectInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/ditty-news-ticker/vendor/composer/installers/src/Composer/Installers/LaravelInstaller.php:4
- > 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)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: content slider, news ticker, responsive slider, post ticker, post slider
ditty-news-ticker/ditty-news-ticker.php Passed 13 tests
This is the main PHP file of "Ditty – Responsive News Tickers, Sliders, and Lists" version 3.1.29, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
110 characters long description:
Ditty offers a range of content display options, including its signature news ticker and customizable layouts.
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected95,670 lines of code in 592 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 57 | 16,284 | 412 | 38,499 |
PHP | 395 | 8,202 | 15,038 | 37,770 |
JavaScript | 46 | 2,142 | 2,225 | 9,693 |
PO File | 7 | 1,529 | 3,012 | 3,746 |
Sass | 48 | 306 | 1,302 | 2,107 |
Markdown | 9 | 382 | 0 | 1,306 |
HTML | 2 | 92 | 0 | 1,165 |
JSON | 11 | 0 | 0 | 920 |
YAML | 6 | 36 | 7 | 182 |
XML | 3 | 5 | 0 | 117 |
SVG | 4 | 1 | 1 | 92 |
make | 1 | 6 | 1 | 53 |
Dockerfile | 2 | 4 | 0 | 19 |
INI | 1 | 0 | 0 | 1 |
PHP code 0% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Please fix the following
- Please reduce cyclomatic complexity of classes to less than 1000 (currently 1,493)
- Please reduce cyclomatic complexity of methods to less than 100 (currently 198)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 15.91 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,493.00 |
Average method complexity | 3.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 198.00 |
Code structure | ||
---|---|---|
Namespaces | 42 | |
Interfaces | 13 | |
Traits | 0 | |
Classes | 313 | |
▷ Abstract classes | 13 | 4.15% |
▷ Concrete classes | 300 | 95.85% |
▷ Final classes | 46 | 15.33% |
Methods | 1,731 | |
▷ Static methods | 112 | 6.47% |
▷ Public methods | 1,195 | 69.04% |
▷ Protected methods | 364 | 21.03% |
▷ Private methods | 172 | 9.94% |
Functions | 458 | |
▷ Named functions | 359 | 78.38% |
▷ Anonymous functions | 99 | 21.62% |
Constants | 112 | |
▷ Global constants | 4 | 3.57% |
▷ Class constants | 108 | 96.43% |
▷ Public constants | 108 | 100.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.08MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/libs/jquery-minicolors/jquery.minicolors.png | 67.02KB | 34.31KB | ▼ 48.80% |
includes/img/ditty-logo-black.png | 10.57KB | 7.28KB | ▼ 31.14% |