78% jmarquee-jquery-news-ticker

Code Review | jMarquee - jQuery News Ticker

WordPress plugin jMarquee - jQuery News Ticker scored 78% from 54 tests.

About plugin

  • Plugin page: jmarquee-jquery-n...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.0-4.5.3
  • WordPress version: 6.3.1
  • First release: Jun 27, 2016
  • Latest release: Jun 27, 2016
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: djerba (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 731 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼1.51ms] Passed 4 tests

A check of server-side resources used by jMarquee - jQuery News Ticker
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0636.81 ▼2.87
Dashboard /wp-admin3.35 ▲0.0544.21 ▼5.51
Posts /wp-admin/edit.php3.47 ▲0.1146.29 ▲0.02
Add New Post /wp-admin/post-new.php5.93 ▲0.0592.71 ▲2.33
Media Library /wp-admin/upload.php3.28 ▲0.0534.17 ▲2.80
jQuery News Ticker /wp-admin/options-general.php?page=jnewsticker-main-menu3.2237.60

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
jnewsticker
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

jMarquee - jQuery News Ticker: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,855 ▲12013.29 ▼1.082.33 ▲0.4746.00 ▲0.69
Dashboard /wp-admin2,212 ▲275.84 ▲0.86107.13 ▼40.4939.51 ▼21.39
Posts /wp-admin/edit.php2,095 ▲62.01 ▼0.0542.19 ▲6.7835.17 ▲2.13
Add New Post /wp-admin/post-new.php1,519 ▼2417.81 ▼0.32592.26 ▼20.4871.62 ▲16.64
Media Library /wp-admin/upload.php1,394 ▲124.18 ▼0.02102.66 ▲4.7445.06 ▲4.15
jQuery News Ticker /wp-admin/options-general.php?page=jnewsticker-main-menu8882.1624.3826.01

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
  • This plugin does not fully uninstall, leaving 7 options in the database
    • jnewsticker
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=jnewsticker-main-menu
    • > Notice in wp-content/plugins/jmarquee-jquery-news-ticker/jnewsticker/jnewsticker.php+91
    Undefined index: pluginSelector

SRP 50% from 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
Please fix the following
  • 1× 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/jmarquee-jquery-news-ticker/jnewsticker/jnewsticker.php:23

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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: Add an image for screenshot #1 (Search for jMarquee - jQuery News Ticker - Front)
The official readme.txt is a good inspiration

jmarquee-jquery-news-ticker/index.php 92% from 13 tests

The main PHP file in "jMarquee - jQuery News Ticker" ver. 1.0 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: The principal plugin file should be the same as the plugin slug ("jmarquee-jquery-news-ticker.php" instead of "index.php")

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 detected420 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS260182
PHP2621160
PO File1192150
JavaScript11128

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
5 PNG files occupy 0.10MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
jnewsticker/images/32.png0.84KB0.68KB▼ 19.31%
jnewsticker/images/128.png3.01KB1.85KB▼ 38.74%
jnewsticker/images/16.png0.46KB0.42KB▼ 9.75%
screenshot-1.png28.08KB12.80KB▼ 54.44%
screenshot-2.png65.68KB28.72KB▼ 56.26%