84% just-ticker

Code Review | Just Ticker

WordPress plugin Just Ticker scored84%from 54 tests.

About plugin

  • Plugin page: just-ticker
  • Plugin version: 1.2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-3.6
  • WordPress version: 6.3.1
  • First release: Apr 25, 2013
  • Latest release: Sep 2, 2013
  • Number of updates: 18
  • Update frequency: every 7.3 days
  • Top authors: potasiyam (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /4,267 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.07MB] [CPU: ▼10.25ms] Passed 4 tests

Server-side resources used by Just Ticker
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0542.48 ▲2.26
Dashboard /wp-admin3.39 ▲0.0450.40 ▼20.51
Posts /wp-admin/edit.php3.50 ▲0.1447.59 ▲0.17
Add New Post /wp-admin/post-new.php5.99 ▲0.1086.97 ▼22.93
Media Library /wp-admin/upload.php3.31 ▲0.0838.21 ▲3.93
Just Ticker Options /wp-admin/options-general.php?page=just-ticker3.2832.69

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
jt_setting
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Just Ticker
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,904 ▲13313.48 ▼0.729.17 ▲7.1942.75 ▼0.13
Dashboard /wp-admin2,201 ▲275.64 ▲0.1286.98 ▼8.9939.96 ▼6.08
Posts /wp-admin/edit.php2,106 ▲62.09 ▲0.1238.28 ▲2.9334.86 ▲0.61
Add New Post /wp-admin/post-new.php1,533 ▲522.97 ▼0.08681.77 ▼0.6060.40 ▼18.36
Media Library /wp-admin/upload.php1,403 ▼04.22 ▲0.03100.35 ▼1.1344.99 ▲0.70
Just Ticker Options /wp-admin/options-general.php?page=just-ticker9292.0124.9428.03

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
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/just-ticker/inc/jt-options.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/just-ticker/justticker.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% 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
6 plugin tags: latest, ticker, headline, wordpress, post...

just-ticker/justticker.php 92% from 13 tests

"Just Ticker" version 1.2.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("just-ticker.php" instead of "justticker.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin389 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP38274329
JavaScript20133
CSS17827

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity21.00
▷ Minimum class complexity17.00
▷ Maximum class complexity25.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods29
▷ Static methods00.00%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
PNG images were not found in this plugin