84% ticker-ultimate

Code Review | Post Ticker Ultimate

WordPress plugin Post Ticker Ultimate scored84%from 54 tests.

About plugin

  • Plugin page: ticker-ultimate
  • Plugin version: 1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 10, 2016
  • Latest release: Nov 27, 2023
  • Number of updates: 48
  • Update frequency: every 54.3 days
  • Top authors: wponlinesupport (56.25%)anoopranawat (45.83%)

Code review

54 tests

User reviews

7 reviews

Install metrics

2,000+ active /51,042 total downloads

Benchmarks

Plugin footprint 83% 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.36MB] [CPU: ▼6.11ms] Passed 4 tests

Server-side resources used by Post Ticker Ultimate
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.3036.31 ▼7.11
Dashboard /wp-admin3.73 ▲0.3849.59 ▼13.05
Posts /wp-admin/edit.php3.78 ▲0.4251.85 ▲5.31
Add New Post /wp-admin/post-new.php6.28 ▲0.3993.54 ▼7.81
Media Library /wp-admin/upload.php3.59 ▲0.3637.58 ▲3.55

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 68 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
wpos_anylc_redirect
widget_recent-comments
wpos_anylc_site_uid
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Post Ticker Ultimate
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,544 ▼1,20310.13 ▼4.111.39 ▼0.2918.88 ▼24.34
Dashboard /wp-admin2,221 ▲405.56 ▼0.16102.14 ▼9.6552.64 ▲9.84
Posts /wp-admin/edit.php2,125 ▲251.99 ▼0.0242.38 ▲4.7535.63 ▲0.31
Add New Post /wp-admin/post-new.php6,226 ▲4,70018.91 ▼3.82870.86 ▲218.8857.75 ▲11.31
Media Library /wp-admin/upload.php1,416 ▲164.22 ▲0.0197.76 ▲1.8237.90 ▼2.68

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 8 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • wpos_anylc_site_uid
    • widget_theysaidso_widget
    • wpos_anylc_redirect

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
Everything seems fine, however this is by no means an exhaustive test

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
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/ticker-ultimate/wp-ticker.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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: ticker horizontal slider, blog ticker, ticker, post ticker, ticker slider...

ticker-ultimate/wp-ticker.php 85% from 13 tests

The main PHP file in "Post Ticker Ultimate" ver. 1.7 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ticker-ultimate.php" instead of "wp-ticker.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 213 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected3,210 lines of code in 39 files:
LanguageFilesBlank linesComment linesLines of code
PHP245928742,671
PO File1103116251
JavaScript75721162
CSS573124
JSON2002

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity16.75
▷ Minimum class complexity3.00
▷ Maximum class complexity87.00
Average method complexity3.80
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes225.00%
Methods45
▷ Static methods24.44%
▷ Public methods4191.11%
▷ Protected methods00.00%
▷ Private methods48.89%
Functions37
▷ Named functions37100.00%
▷ Anonymous functions00.00%
Constants19
▷ Global constants19100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
26 PNG files occupy 0.16MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/site-origin-icon.png6.21KB2.48KB▼ 60.12%
assets/images/g-logo.png41.17KB14.04KB▼ 65.90%
assets/images/wpbakery-icon.png6.14KB2.42KB▼ 60.58%
assets/images/beaver-icon.png8.91KB2.90KB▼ 67.42%
assets/images/inboundwp-50.png3.19KB1.95KB▼ 38.90%