Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.10ms] Passed 4 tests
Analyzing server-side resources used by Rhx News Ticker
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.37 ▲0.19 |
Dashboard /wp-admin | 3.32 ▲0.02 | 51.34 ▲3.23 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 46.10 ▼1.62 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 85.88 ▼14.57 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 32.98 ▼0.39 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
rhxn_ticker_version |
widget_recent-posts |
widget_theysaidso_widget |
rhxn_ticker_installed |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Rhx News Ticker
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲76 | 13.25 ▼1.43 | 2.12 ▲0.30 | 47.27 ▲2.33 |
Dashboard /wp-admin | 2,222 ▲31 | 4.86 ▼0.24 | 107.88 ▲4.70 | 41.66 ▼0.09 |
Posts /wp-admin/edit.php | 2,105 ▲19 | 2.02 ▲0.01 | 38.92 ▲2.70 | 34.21 ▲0.40 |
Add New Post /wp-admin/post-new.php | 1,549 ▲35 | 23.33 ▲5.85 | 657.06 ▼37.44 | 53.83 ▼0.06 |
Media Library /wp-admin/upload.php | 1,407 ▲19 | 4.20 ▲0.03 | 99.00 ▼4.06 | 44.02 ▼1.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 8 options in the database
- rhxn_ticker_version
- widget_recent-posts
- rhxn_ticker_installed
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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 take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rhx-news-ticker/includes/frontend-control.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rhx-news-ticker/includes/dynamic-style.php:79
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Ticker Settings), #2 (Back End), #3 (Front End)
rhx-news-ticker/rhx-news-ticker.php 85% from 13 tests
The principal PHP file in "Rhx News Ticker" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 217 characters long)
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,088 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 19 | 219 | 515 | 1,001 |
CSS | 2 | 0 | 0 | 55 |
JSON | 2 | 0 | 0 | 24 |
JavaScript | 2 | 5 | 11 | 8 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 10.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 1 | 8.33% |
Methods | 59 | |
▷ Static methods | 19 | 32.20% |
▷ Public methods | 56 | 94.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 5.08% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin