89% easy-news-ticker

Code Review | Easy News Ticker

WordPress plugin Easy News Ticker scored89%from 54 tests.

About plugin

  • Plugin page: easy-news-ticker
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.1
  • WordPress version: 6.3.1
  • First release: Nov 30, 2014
  • Latest release: Jul 9, 2015
  • Number of updates: 15
  • Update frequency: every 14.7 days
  • Top authors: ifte.hsn2013 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /3,484 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼5.55ms] Passed 4 tests

Server-side resources used by Easy News Ticker
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.79 ▲0.0641.96 ▼3.12
Dashboard /wp-admin3.62 ▲0.0654.87 ▼5.97
Posts /wp-admin/edit.php3.74 ▲0.0648.88 ▼5.62
Add New Post /wp-admin/post-new.php6.21 ▲0.0695.71 ▼7.50
Media Library /wp-admin/upload.php3.55 ▲0.0639.26 ▲0.98

Server storage [IO: ▲0.40MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_ent-news-ticker-widget
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Easy News Ticker
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,879 ▲9313.86 ▼0.188.34 ▲6.5438.12 ▼3.46
Dashboard /wp-admin2,203 ▲355.60 ▲0.0495.40 ▲1.6840.40 ▼5.04
Posts /wp-admin/edit.php2,105 ▲22.02 ▼0.0641.71 ▲2.7934.18 ▼6.05
Add New Post /wp-admin/post-new.php1,545 ▲1423.18 ▼0.06601.64 ▲2.6948.75 ▼13.76
Media Library /wp-admin/upload.php1,408 ▲84.22 ▼0.03102.75 ▼1.8645.72 ▼0.93

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_ent-news-ticker-widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === easy-news-ticker === )
Please take inspiration from this readme.txt

easy-news-ticker/easy_news_ticker.php 85% from 13 tests

The main PHP script in "Easy News Ticker" version 1.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("easy-news-ticker.php" instead of "easy_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
Everything looks great! No dangerous files found in this plugin431 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP310533310
JavaScript391106
CSS11015

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity4.75
▷ Minimum method complexity1.00
▷ Maximum method complexity12.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%
Functions8
▷ Named functions8100.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
6 PNG files occupy 0.38MB with 0.23MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png108.94KB40.11KB▼ 63.18%
screenshot-4.png80.18KB31.83KB▼ 60.30%
screenshot-5.png64.61KB29.74KB▼ 53.96%
screenshot-2.png53.61KB19.96KB▼ 62.76%
screenshot-3.png70.38KB28.58KB▼ 59.39%