78% ticker-pro

Code Review | Ticker Pro

WordPress plugin Ticker Pro scored78%from 54 tests.

About plugin

  • Plugin page: ticker-pro
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8.1
  • WordPress version: 6.3.1
  • First release: Aug 22, 2017
  • Latest release: Aug 27, 2017
  • Number of updates: 17
  • Update frequency: every 0.3 days
  • Top authors: mirajnetxp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /588 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.95ms] Passed 4 tests

An overview of server-side resources used by Ticker Pro
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.45 ▼12.64
Dashboard /wp-admin3.31 ▲0.0145.37 ▲0.25
Posts /wp-admin/edit.php3.36 ▲0.0149.13 ▲2.11
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.23 ▼0.68
Media Library /wp-admin/upload.php3.24 ▲0.0133.53 ▲1.27

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 20 new files
Database: 1 new table, 8 new options
New tables
wp_ticker_pro_6489
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
ticker_pro_options
ticker_pro_6489_db_version

Browser metrics Passed 4 tests

A check of browser resources used by Ticker Pro
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,907 ▲16113.99 ▼0.324.97 ▲2.4936.59 ▼6.38
Dashboard /wp-admin2,224 ▲394.84 ▼1.02112.32 ▲13.4740.81 ▼5.35
Posts /wp-admin/edit.php2,107 ▲152.03 ▼0.0239.57 ▼2.8933.66 ▼2.54
Add New Post /wp-admin/post-new.php1,552 ▲2418.46 ▼4.65620.40 ▲21.9750.76 ▲6.04
Media Library /wp-admin/upload.php1,406 ▲154.24 ▼0.0199.82 ▲2.5239.86 ▼1.74

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 8 options in the database
    • ticker_pro_options
    • widget_theysaidso_widget
    • ticker_pro_6489_db_version
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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 perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/ticker-pro/ticker-pro.php
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ticker-pro/plugin_script.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/ticker-pro/includes/form-handler.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/ticker-pro/includes/plugin_shortcode.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ticker-pro/includes/plugin-options.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: No descriptions were found for these screenshots #1, #2 in ticker-pro/assets to your readme.txt
  • Contributors: Plugin contributors not specified
Please take inspiration from this readme.txt

ticker-pro/ticker-pro.php Passed 13 tests

This is the main PHP file of "Ticker Pro" version 3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
117 characters long description:
Ticker Pro probably the simplest and lightweight ticker in the world. Which display your ticker ony any page or post.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected598 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP710355366
JavaScript34367204
CSS372228

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions1280.00%
▷ Anonymous functions320.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
color-picker/img/saturation.png4.05KB5.13KB0.00%
color-picker/img/hue-horizontal.png0.47KB0.47KB0.00%
color-picker/img/alpha-horizontal.png0.54KB1.62KB0.00%
color-picker/img/alpha.png0.48KB1.68KB0.00%
color-picker/img/hue.png0.49KB0.50KB0.00%