Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.80ms] Passed 4 tests
An overview of server-side resources used by wordpress responsive scroller
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.79 ▼0.27 |
Dashboard /wp-admin | 3.35 ▲0.05 | 48.90 ▼2.89 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 49.49 ▼4.04 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 85.54 ▼16.01 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 37.65 ▲0.67 |
Add News /wp-admin/post-new.php?post_type=wpr_scroller_news | 3.49 | 67.23 |
Scroller News /wp-admin/edit.php?post_type=wpr_scroller_news | 3.32 | 40.01 |
WPR Scroller Settings /wp-admin/options-general.php?page=my-setting-admin | 3.24 | 29.78 |
News Category /wp-admin/edit-tags.php?taxonomy=categorys&post_type=wpr_scroller_news | 3.27 | 36.25 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for wordpress responsive scroller
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,952 ▲206 | 14.07 ▼0.68 | 6.88 ▲5.17 | 45.11 ▲2.47 |
Dashboard /wp-admin | 2,244 ▲56 | 5.81 ▲0.89 | 97.80 ▼11.92 | 39.47 ▼6.17 |
Posts /wp-admin/edit.php | 2,130 ▲41 | 2.02 ▲0.05 | 33.21 ▼3.72 | 34.14 ▼7.15 |
Add New Post /wp-admin/post-new.php | 1,549 ▲25 | 23.10 ▼0.07 | 636.24 ▼50.07 | 54.82 ▼3.08 |
Media Library /wp-admin/upload.php | 1,429 ▲41 | 4.17 ▼0.02 | 100.61 ▼11.84 | 44.65 ▼2.86 |
Add News /wp-admin/post-new.php?post_type=wpr_scroller_news | 2,775 | 7.84 | 186.12 | 83.12 |
Scroller News /wp-admin/edit.php?post_type=wpr_scroller_news | 1,145 | 2.01 | 32.04 | 30.78 |
WPR Scroller Settings /wp-admin/options-general.php?page=my-setting-admin | 847 | 2.05 | 24.68 | 28.97 |
News Category /wp-admin/edit-tags.php?taxonomy=categorys&post_type=wpr_scroller_news | 1,300 | 2.14 | 27.80 | 27.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/responsive-news-scroller/public/partials/wpr-scroller-public-display.php
- > /wp-content/plugins/responsive-news-scroller/wpr-news.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-news-scroller/admin/class-wpr-scroller-admin.php:41
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
- 4 occurences, only the last one shown
- > GET request to /wp-admin/edit-tags.php?taxonomy=categorys&post_type=wpr_scroller_news
- > Network (severe)
wp-content/plugins/admin/admin/css/wpr-scroller-admin.css - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=my-setting-admin
- > Network (severe)
wp-content/plugins/responsive-news-scroller/admin/img/setting-icon.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== responsive-news-scroller ===
)
responsive-news-scroller/wpr-scroller.php 85% from 13 tests
The entry point to "wordpress responsive scroller" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("responsive-news-scroller.php" instead of "wpr-scroller.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin588 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 193 | 583 | 336 |
CSS | 3 | 37 | 5 | 147 |
JavaScript | 3 | 26 | 27 | 105 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 1.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 31 | |
▷ Static methods | 2 | 6.45% |
▷ Public methods | 26 | 83.87% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.13% |
Functions | 7 | |
▷ Named functions | 7 | 100.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