Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/fp-news-ticker/fp_news_ticker.php+17
Methods with the same name as their class will not be constructors in a future version of PHP; NewstickerWidget has a deprecated constructor
Server metrics [RAM: ▼1.85MB] [CPU: ▼55.23ms] Passed 4 tests
Analyzing server-side resources used by FP News Ticker
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.14 ▼1.32 | 4.16 ▼36.86 |
Dashboard /wp-admin | 2.16 ▼1.14 | 5.86 ▼48.41 |
Posts /wp-admin/edit.php | 2.16 ▼1.19 | 6.02 ▼48.81 |
Add New Post /wp-admin/post-new.php | 2.16 ▼3.73 | 5.55 ▼86.82 |
Media Library /wp-admin/upload.php | 2.16 ▼1.07 | 7.15 ▼29.17 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_newstickerwidget |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for FP News Ticker
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,906 ▲145 | 13.73 ▼0.66 | 7.58 ▲5.50 | 40.34 ▼7.21 |
Dashboard /wp-admin | 2,225 ▲19 | 4.86 ▼1.02 | 113.48 ▼4.94 | 39.77 ▼2.69 |
Posts /wp-admin/edit.php | 2,101 ▲4 | 2.00 ▼0.06 | 37.50 ▼0.21 | 36.36 ▲1.89 |
Add New Post /wp-admin/post-new.php | 1,530 ▼1 | 22.73 ▼0.44 | 611.10 ▼25.20 | 57.22 ▼12.15 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.14 ▼0.07 | 116.64 ▲8.67 | 49.57 ▲1.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/fp-news-ticker/fp_news_ticker.php+17
Methods with the same name as their class will not be constructors in a future version of PHP; NewstickerWidget has a deprecated constructor
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- widget_recent-posts
- widget_newstickerwidget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking 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 | 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
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/fp-news-ticker/fp_news_ticker.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
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 your attention:
- Screenshots: These screenshots do not have images: #1 (View Frontend of FP News Ticker Widget View.), #2 (View Backend of FP News Ticker Widget Settings.)
fp-news-ticker/fp_news_ticker.php 85% from 13 tests
The principal PHP file in "FP News Ticker" v. 1.0.1 is loaded by WordPress automatically on each request
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 289 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("fp-news-ticker.php" instead of "fp_news_ticker.php")
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
Good job! No executable or dangerous file extensions detected651 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 30 | 67 | 330 |
PHP | 1 | 17 | 10 | 176 |
CSS | 1 | 0 | 3 | 145 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 34.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 9.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/controls.png | 2.08KB | 1.38KB | ▼ 33.36% |
screenshot-2.png | 16.88KB | 6.10KB | ▼ 63.84% |
screenshot-1.png | 6.00KB | 1.94KB | ▼ 67.65% |