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.48MB] [CPU: ▲0.01ms] Passed 4 tests
This is a short check of server-side resources used by Floating News Headline - Scrolling Text
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.96 ▲0.50 | 40.94 ▲1.90 |
Dashboard /wp-admin | 3.82 ▲0.52 | 52.51 ▼3.77 |
Posts /wp-admin/edit.php | 3.87 ▲0.52 | 52.34 ▲5.79 |
Add New Post /wp-admin/post-new.php | 6.34 ▲0.46 | 86.29 ▼2.97 |
Media Library /wp-admin/upload.php | 3.68 ▲0.45 | 38.93 ▲4.87 |
Docs /wp-admin/edit.php?post_type=floating_headline&page=ak-doc-page | 3.65 | 34.44 |
Add Floating Headline /wp-admin/post-new.php?post_type=floating_headline | 3.85 | 49.45 |
Our Theme /wp-admin/edit.php?post_type=floating_headline&page=sr-theme-page | 3.65 | 34.61 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 3.75 | 36.35 |
All Floating Headline /wp-admin/edit.php?post_type=floating_headline | 3.68 | 34.11 |
Server storage [IO: ▲2.82MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Floating News Headline - Scrolling Text
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,981 ▲246 | 13.56 ▼0.88 | 5.63 ▲3.67 | 42.81 ▼6.52 |
Dashboard /wp-admin | 2,277 ▲92 | 5.84 ▲0.02 | 97.06 ▼19.91 | 42.65 ▼1.75 |
Posts /wp-admin/edit.php | 2,174 ▲85 | 2.04 ▲0.04 | 36.33 ▼0.19 | 40.79 ▲2.93 |
Add New Post /wp-admin/post-new.php | 1,578 ▲44 | 17.73 ▼5.35 | 610.52 ▼49.59 | 44.77 ▼13.14 |
Media Library /wp-admin/upload.php | 1,470 ▲82 | 4.26 ▲0.06 | 95.95 ▼7.56 | 48.38 ▲4.17 |
Docs /wp-admin/edit.php?post_type=floating_headline&page=ak-doc-page | 894 | 2.08 | 23.67 | 37.49 |
Add Floating Headline /wp-admin/post-new.php?post_type=floating_headline | 2,280 | 4.35 | 104.85 | 270.04 |
Our Theme /wp-admin/edit.php?post_type=floating_headline&page=sr-theme-page | 995 | 2.05 | 24.94 | 45.82 |
Install Plugins /wp-admin/themes.php?page=tgmpa-install-plugins | 1,071 | 2.08 | 23.22 | 29.21 |
All Floating Headline /wp-admin/edit.php?post_type=floating_headline | 1,152 | 1.99 | 32.05 | 30.53 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/edit.php?post_type=floating_headline
- > Notice in wp-content/plugins/floating-news-headline/floating-news-headlines.php+92
Undefined variable: columns
- > GET request to /wp-admin/edit.php?post_type=floating_headline
- > Notice in wp-content/plugins/floating-news-headline/floating-news-headlines.php+92
Trying to access array offset on value of type null
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/floating-news-headline/docs.php
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/floating-news-headline/floating-headline-output.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/floating-news-headline/our-theme/awp-theme.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/floating-news-headline/class-tgm-plugin-activation.php:2109
- > PHP Notice
Undefined variable: fhs_id in wp-content/plugins/floating-news-headline/floating-headline-output.php on line 5
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/post-new.php?post_type=floating_headline
- > Network (severe)
wp-content/plugins/floating-news-headline/css/fh-uploader.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/post-new.php?post_type=floating_headline
- > Network (severe)
wp-content/plugins/floating-news-headline/css/bootstrap-iconpicker.min.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/post-new.php?post_type=floating_headline
- > Network (severe)
wp-content/plugins/floating-news-headline/js/fh-uploader.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/post-new.php?post_type=floating_headline
- > Network (severe)
wp-content/plugins/floating-news-headline/js/iconset-all.min.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/post-new.php?post_type=floating_headline
- > Network (severe)
wp-content/plugins/floating-news-headline/js/bootstrap-iconpicker.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/post-new.php?post_type=floating_headline
- > Javascript (severe) in unknown
/wp-content/plugins/floating-news-headline/js/bootstrap.js?ver=6.3.1 14:10 Uncaught Error: Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3
- > GET request to /wp-admin/edit.php?post_type=floating_headline&page=sr-theme-page
- > Network (severe)
wp-content/plugins/floating-news-headline/js/bootstrap.min.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 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: news headline, scrolling text, floating text, scrolling headline, news floating
floating-news-headline/floating-news-headlines.php 92% from 13 tests
This is the main PHP file of "Floating News Headline - Scrolling Text" version 1.2.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("floating-news-headline.php" instead of "floating-news-headlines.php")
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
Success! There were no dangerous files found in this plugin18,765 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 37 | 49 | 13,715 |
PHP | 7 | 562 | 1,673 | 2,304 |
JavaScript | 3 | 607 | 204 | 1,660 |
SVG | 2 | 0 | 0 | 973 |
PO File | 1 | 47 | 49 | 113 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 43.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 3.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 115 | |
▷ Static methods | 5 | 4.35% |
▷ Public methods | 90 | 78.26% |
▷ Protected methods | 25 | 21.74% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 7 | 70.00% |
▷ Class constants | 3 | 30.00% |
▷ Public constants | 3 | 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.17MB with 0.11MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/barrager/close.png | 3.88KB | 1.10KB | ▼ 71.64% |
our-theme/img/aneeq-premium.png | 165.42KB | 57.84KB | ▼ 65.04% |