99% synchronise-news-ticker

Code Review | Synchronise News Ticker

WordPress plugin Synchronise News Ticker scored 99% from 53 tests.

About plugin

  • Plugin page: synchronise-news-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5.2
  • WordPress version: 5.8.1
  • First release: Jun 21, 2016
  • Latest release: Jul 7, 2016
  • Number of updates: 13
  • Update frequency: every 1.2 days
  • Top authors: Mohammad Jahidul Alam Rudro (100%)

Code review

53 tests

User reviews

1 review

Install metrics

20+ active / 1,233 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Server-side resources used by Synchronise News Ticker
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1335.31 ▲7.43
Dashboard /wp-admin3.07 ▲0.0155.10 ▲12.78
Posts /wp-admin/edit.php3.12 ▲0.0141.68 ▲0.42
Add New Post /wp-admin/post-new.php5.43 ▲0.0090.95 ▼1,090.35
Media Library /wp-admin/upload.php3.01 ▲0.0037.50 ▼8.26

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Synchronise News Ticker
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,790 ▲20816.52 ▲1.0314.20 ▲6.3354.60 ▲7.08
Dashboard /wp-admin2,934 ▲845.88 ▼0.01146.39 ▲1.28112.96 ▲1.90
Posts /wp-admin/edit.php2,710 ▲42.70 ▲0.0260.26 ▼7.1083.38 ▼12.55
Add New Post /wp-admin/post-new.php1,660 ▲418.37 ▲1.33365.60 ▼27.57116.13 ▼1.85
Media Library /wp-admin/upload.php1,776 ▲45.02 ▲0.03144.76 ▼33.16120.08 ▼6.32

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

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 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Contributors: The plugin contributors field is missing
  • Screenshots: A description for screenshot #1 is required in synchronise-news-ticker/assets to your readme.txt
The official readme.txt is a good inspiration

synchronise-news-ticker/mainFunction.php 85% from 13 tests

The entry point to "Synchronise News Ticker" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("synchronise-news-ticker.php" instead of "mainFunction.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 186 characters long)

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
Good job! No executable or dangerous file extensions detected317 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript24566224
PHP1131052
CSS14041

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin