83% static-newsticker

Code Review | Static Newsticker

WordPress plugin Static Newsticker scored83%from 54 tests.

About plugin

  • Plugin page: static-newsticker
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.5
  • WordPress version: 6.3.1
  • First release: Oct 20, 2017
  • Latest release: Aug 23, 2020
  • Number of updates: 16
  • Update frequency: every 64.9 days
  • Top authors: nath4n (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /6,009 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
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.43ms] Passed 4 tests

An overview of server-side resources used by Static Newsticker
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0246.46 ▲3.49
Dashboard /wp-admin3.33 ▲0.0254.41 ▼0.78
Posts /wp-admin/edit.php3.38 ▲0.0250.86 ▼2.51
Add New Post /wp-admin/post-new.php5.91 ▲0.0293.15 ▼16.94
Media Library /wp-admin/upload.php3.25 ▲0.0235.85 ▼1.49
Static Newsticker /wp-admin/options-general.php?page=static-news-ticker3.2233.56

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
news-ticker-settings
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Static Newsticker
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,050 ▲26413.45 ▼1.1015.37 ▲13.3755.23 ▲15.09
Dashboard /wp-admin2,199 ▲225.65 ▲0.0793.37 ▲5.5144.34 ▲1.79
Posts /wp-admin/edit.php2,104 ▲42.01 ▲0.0034.17 ▼6.7932.10 ▼4.82
Add New Post /wp-admin/post-new.php1,531 ▲523.28 ▲0.21712.44 ▲100.4351.01 ▲1.21
Media Library /wp-admin/upload.php1,404 ▲44.24 ▲0.0399.75 ▲3.7344.26 ▲0.03
Static Newsticker /wp-admin/options-general.php?page=static-news-ticker8491.9927.4728.23

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • news-ticker-settings

Smoke tests 75% from 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 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
The following issues need your attention
  • 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/static-newsticker/init.php:15

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

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: hot news, breaking news, headlines, headline news, newsticker

static-newsticker/init.php 77% from 13 tests

The principal PHP file in "Static Newsticker" v. 2.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("static-newsticker.php" instead of "init.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin201 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP11027143
CSS26058

PHP code Passed 2 tests

A short review 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.44
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%
Functions6
▷ Named functions6100.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
There are no PNG files in this plugin