Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/fp-news-scroller/fp_news_scroller.php+17
Methods with the same name as their class will not be constructors in a future version of PHP; NewsscrollerWidget has a deprecated constructor
Server metrics [RAM: ▼1.85MB] [CPU: ▼49.32ms] Passed 4 tests
Server-side resources used by FP News Scroller
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.32 | 4.91 ▼35.41 |
Dashboard /wp-admin | 2.16 ▼1.15 | 10.50 ▼40.31 |
Posts /wp-admin/edit.php | 2.16 ▼1.20 | 6.30 ▼38.49 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.73 | 5.90 ▼83.08 |
Media Library /wp-admin/upload.php | 2.16 ▼1.07 | 5.23 ▼29.79 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_newsscrollerwidget |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for FP News Scroller
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,894 ▲148 | 13.83 ▼0.46 | 7.47 ▲5.61 | 44.86 ▼3.36 |
Dashboard /wp-admin | 2,211 ▲20 | 5.85 ▲0.97 | 106.26 ▲0.05 | 41.81 ▼7.32 |
Posts /wp-admin/edit.php | 2,094 ▲5 | 2.06 ▲0.00 | 38.47 ▲5.50 | 33.85 ▲0.24 |
Add New Post /wp-admin/post-new.php | 1,527 ▲13 | 23.31 ▲5.82 | 653.78 ▼36.01 | 45.51 ▼9.52 |
Media Library /wp-admin/upload.php | 1,393 ▲5 | 4.26 ▲0.01 | 96.52 ▼14.87 | 42.73 ▼4.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/fp-news-scroller/fp_news_scroller.php+17
Methods with the same name as their class will not be constructors in a future version of PHP; NewsscrollerWidget has a deprecated constructor
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_newsscrollerwidget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/fp-news-scroller/fp_news_scroller.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (View Frontend of FP News Scroller Widget View.), #2 (View Backend of FP News Scroller Widget Settings.)
fp-news-scroller/fp_news_scroller.php 85% from 13 tests
"FP News Scroller" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Description: The description should be shorter than 140 characters (currently 285 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("fp-news-scroller.php" instead of "fp_news_scroller.php")
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 plugin486 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 24 | 29 | 255 |
PHP | 1 | 15 | 10 | 155 |
CSS | 1 | 5 | 2 | 76 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 9.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.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 | 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
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/right.png | 2.87KB | 0.82KB | ▼ 71.56% |
screenshot-1.png | 5.39KB | 1.83KB | ▼ 65.98% |
images/left.png | 2.88KB | 0.82KB | ▼ 71.60% |
screenshot-2.png | 7.81KB | 3.37KB | ▼ 56.79% |