10% fp-news-ticker

Code Review | FP News Ticker

WordPress plugin FP News Ticker scored10%from 54 tests.

About plugin

  • Plugin page: fp-news-ticker
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.0.0-3.5.1
  • WordPress version: 6.3.1
  • First release: Jun 25, 2013
  • Latest release: Jun 26, 2013
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: digontobd (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /9,609 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.14 ▼1.324.16 ▼36.86
Dashboard /wp-admin2.16 ▼1.145.86 ▼48.41
Posts /wp-admin/edit.php2.16 ▼1.196.02 ▼48.81
Add New Post /wp-admin/post-new.php2.16 ▼3.735.55 ▼86.82
Media Library /wp-admin/upload.php2.16 ▼1.077.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,906 ▲14513.73 ▼0.667.58 ▲5.5040.34 ▼7.21
Dashboard /wp-admin2,225 ▲194.86 ▼1.02113.48 ▼4.9439.77 ▼2.69
Posts /wp-admin/edit.php2,101 ▲42.00 ▼0.0637.50 ▼0.2136.36 ▲1.89
Add New Post /wp-admin/post-new.php1,530 ▼122.73 ▼0.44611.10 ▼25.2057.22 ▼12.15
Media Library /wp-admin/upload.php1,404 ▲14.14 ▼0.07116.64 ▲8.6749.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

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.)
The official readme.txt is a good inspiration

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:
LanguageFilesBlank linesComment linesLines of code
JavaScript13067330
PHP11710176
CSS103145

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 code0.27
Average class complexity34.00
▷ Minimum class complexity34.00
▷ Maximum class complexity34.00
Average method complexity9.25
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/controls.png2.08KB1.38KB▼ 33.36%
screenshot-2.png16.88KB6.10KB▼ 63.84%
screenshot-1.png6.00KB1.94KB▼ 67.65%