83% jeba-news-ticker

Code Review | Jeba news ticker

WordPress plugin Jeba news ticker scored83%from 54 tests.

About plugin

  • Plugin page: jeba-news-ticker
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.0
  • WordPress version: 6.3.1
  • First release: May 14, 2015
  • Latest release: May 18, 2015
  • Number of updates: 5
  • Update frequency: every 0.8 days
  • Top authors: jahed (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,534 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

An overview of server-side resources used by Jeba news ticker
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.24 ▼0.67
Dashboard /wp-admin3.32 ▲0.0147.11 ▼3.82
Posts /wp-admin/edit.php3.37 ▲0.0147.67 ▼0.71
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.05 ▼17.39
Media Library /wp-admin/upload.php3.24 ▲0.0138.77 ▲1.10

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Jeba news ticker
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,880 ▲9413.41 ▼0.768.17 ▲6.2543.60 ▼3.41
Dashboard /wp-admin2,199 ▲225.63 ▼0.0483.39 ▼13.0941.10 ▲2.56
Posts /wp-admin/edit.php2,104 ▲72.03 ▲0.0536.91 ▼3.1839.61 ▼0.94
Add New Post /wp-admin/post-new.php1,530 ▲422.95 ▼0.13673.25 ▲56.7653.46 ▲3.56
Media Library /wp-admin/upload.php1,398 ▼54.23 ▲0.1097.13 ▼10.4047.00 ▲3.74

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

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 items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jeba-news-ticker/main-functions.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% 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
These attributes need to be fixed:
  • Contributors: Contributors not specified
  • Screenshots: Screenshot #1 (How to use shortcode in editor.) image required
Please take inspiration from this readme.txt

jeba-news-ticker/main-functions.php 92% from 13 tests

The main PHP script in "Jeba news ticker" version 1.1.0 is automatically included on every request by WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("jeba-news-ticker.php" instead of "main-functions.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin159 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS13271
PHP1221056
JavaScript121332

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.04
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%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected