Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▲1.42ms] Passed 4 tests
An overview of server-side resources used by Horizontal scrolling announcements
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 44.50 ▲5.46 |
Dashboard /wp-admin | 3.42 ▲0.12 | 47.02 ▼1.22 |
Posts /wp-admin/edit.php | 3.53 ▲0.18 | 47.71 ▲1.09 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 96.28 ▲3.35 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 36.23 ▲2.44 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 18 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_horizontal_scrolling_hsas |
New WordPress options |
---|
widget_recent-posts |
widget_horizontal-scrolling-announcements |
horizontal-scrolling-announcements |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
horizontal-scrolling-roles |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Horizontal scrolling announcements
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,905 ▲144 | 13.42 ▼1.15 | 7.47 ▲5.54 | 39.95 ▼3.88 |
Dashboard /wp-admin | 2,207 ▲30 | 5.57 ▼0.09 | 86.73 ▼7.83 | 37.48 ▼7.39 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.01 ▲0.04 | 33.47 ▼2.07 | 35.14 ▼0.70 |
Add New Post /wp-admin/post-new.php | 1,545 ▲17 | 18.06 ▼5.14 | 594.65 ▼36.19 | 75.44 ▲22.17 |
Media Library /wp-admin/upload.php | 1,415 ▲18 | 4.17 ▼0.02 | 94.28 ▼1.58 | 42.62 ▼2.42 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_horizontal-scrolling-announcements
- db_upgraded
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/horizontal-scrolling-announcements/content/content-add.php
- > /wp-content/plugins/horizontal-scrolling-announcements/horizontal-scrolling-announcements.php
- > /wp-content/plugins/horizontal-scrolling-announcements/content/content-edit.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
2 plugin tags: scrolling, announcements
horizontal-scrolling-announcements/horizontal-scrolling-announcements.php 92% from 13 tests
Analyzing the main PHP file in "Horizontal scrolling announcements" version 2.5
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 176 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,920 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 198 | 65 | 1,213 |
JavaScript | 3 | 55 | 96 | 403 |
PO File | 2 | 140 | 176 | 304 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 9.86 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 3.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 22 | 81.48% |
▷ Public methods | 27 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin