Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/simple-news-ticker/simple-news-ticker.php+302
Function create_function() is deprecated
Server metrics [RAM: ▼1.91MB] [CPU: ▼55.89ms] Passed 4 tests
An overview of server-side resources used by Simple News Ticker
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.39 | 5.64 ▼37.02 |
Dashboard /wp-admin | 2.10 ▼1.21 | 6.11 ▼47.52 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 6.53 ▼41.09 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 6.31 ▼97.93 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.08 ▼29.52 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_simple_news_ticker |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Simple News Ticker
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,910 ▲164 | 13.63 ▼0.76 | 8.37 ▲6.63 | 43.04 ▲0.70 |
Dashboard /wp-admin | 2,206 ▲18 | 4.84 ▼1.04 | 105.65 ▼7.16 | 44.02 ▼3.38 |
Posts /wp-admin/edit.php | 2,092 ▲6 | 2.03 ▲0.01 | 34.75 ▼2.70 | 31.14 ▼1.85 |
Add New Post /wp-admin/post-new.php | 1,514 ▼28 | 17.51 ▼0.83 | 648.78 ▼7.54 | 52.19 ▼4.71 |
Media Library /wp-admin/upload.php | 1,385 ▼6 | 4.23 ▲0.00 | 93.58 ▼10.12 | 40.95 ▼2.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/simple-news-ticker/simple-news-ticker.php+302
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_simple_news_ticker
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 50% 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
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/simple-news-ticker/views/widget.php:6
- > PHP Notice
Undefined variable: title in wp-content/plugins/simple-news-ticker/views/widget.php on line 5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/simple-news-ticker/views/admin.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
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: jquery, news, widget, ticker
simple-news-ticker/simple-news-ticker.php Passed 13 tests
The primary PHP file in "Simple News Ticker" version 1.0.2 is used by WordPress to initiate all plugin functionality
69 characters long description:
Create a ticker of posts, pages or whatever Custom Post Type you have
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin770 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 19 | 5 | 492 |
PHP | 3 | 127 | 95 | 182 |
CSS | 1 | 18 | 10 | 57 |
PO File | 1 | 11 | 11 | 39 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 1.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 13 | |
▷ Static methods | 1 | 7.69% |
▷ Public methods | 13 | 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 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin