Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.28MB] [CPU: ▼7.69ms] Passed 4 tests
Analyzing server-side resources used by Vertical News Scroller
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.29 | 46.06 ▲4.44 |
Dashboard /wp-admin | 3.60 ▲0.25 | 55.81 ▼8.81 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 49.47 ▼4.97 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.29 | 84.50 ▼21.42 |
Media Library /wp-admin/upload.php | 3.52 ▲0.28 | 44.15 ▲10.14 |
Server storage [IO: ▲0.51MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 20 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_scroll_news |
New WordPress options |
---|
widget_recent-comments |
widget_vns_verticalscroll |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Vertical News Scroller
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲44 | 14.72 ▲0.11 | 1.64 ▼0.23 | 47.70 ▲2.18 |
Dashboard /wp-admin | 2,211 ▲34 | 5.62 ▼0.02 | 86.44 ▼1.39 | 41.99 ▲6.35 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 1.94 ▼0.06 | 35.87 ▼2.09 | 32.62 ▼5.72 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.65 ▲0.49 | 630.64 ▼90.42 | 47.00 ▼11.04 |
Media Library /wp-admin/upload.php | 1,419 ▲22 | 4.19 ▼0.07 | 95.85 ▼2.59 | 45.56 ▼1.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie tables detected upon uninstall: 1 table
- wp_scroll_news
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_vns_verticalscroll
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
The smoke test was a success, however most plugin functionality was not tested
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 take a closer look at the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/vertical-news-scroller/newsScroller.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: vertical scrolling news, wordpress set post or page as news, news plugin wordpress, scrolling news wordpress, vertical news...
vertical-news-scroller/newsScroller.php 92% from 13 tests
This is the main PHP file of "Vertical News Scroller" version 1.25, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("vertical-news-scroller.php" instead of "newsScroller.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected2,705 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 162 | 119 | 1,393 |
PHP | 1 | 413 | 26 | 1,249 |
CSS | 2 | 3 | 7 | 63 |
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.30 |
Average class complexity | 46.00 |
▷ Minimum class complexity | 46.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 12.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 16 | 94.12% |
▷ Anonymous functions | 1 | 5.88% |
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
6 PNG files occupy 0.15MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/g-suite-promo-code-4.png | 59.03KB | 17.19KB | ▼ 70.88% |
images/300x250.png | 34.77KB | 13.75KB | ▼ 60.46% |
images/desc.png | 0.16KB | 0.12KB | ▼ 23.31% |
images/asc.png | 0.14KB | 0.12KB | ▼ 13.79% |
images/300x250-wp-eng.png | 34.77KB | 13.75KB | ▼ 60.46% |