84% simple-posts-ticker

Code Review | Simple Posts Ticker - Easy, Lightweight & Flexible

WordPress plugin Simple Posts Ticker - Easy, Lightweight & Flexible scored84%from 54 tests.

About plugin

  • Plugin page: simple-posts-ticker
  • Plugin version: 1.1.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Dec 28, 2018
  • Latest release: Sep 2, 2023
  • Number of updates: 27
  • Update frequency: every 63.3 days
  • Top authors: infosatech (100%)

Code review

54 tests

User reviews

21 reviews

Install metrics

1,000+ active /15,388 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
Install script ran successfully

Server metrics [RAM: ▲0.32MB] [CPU: ▼4.04ms] Passed 4 tests

This is a short check of server-side resources used by Simple Posts Ticker - Easy, Lightweight & Flexible
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.76 ▲0.2928.27 ▼11.63
Dashboard /wp-admin3.65 ▲0.3049.10 ▼11.51
Posts /wp-admin/edit.php3.76 ▲0.4050.10 ▲1.87
Add New Post /wp-admin/post-new.php6.23 ▲0.3499.71 ▲8.69
Media Library /wp-admin/upload.php3.57 ▲0.3438.61 ▲5.12
Add New /wp-admin/post-new.php?post_type=spt_ticker3.6153.31
Simple Posts Ticker /wp-admin/options-general.php?page=simple-posts-ticker3.6336.86
All Tickers /wp-admin/edit.php?post_type=spt_ticker3.6135.45

Server storage [IO: ▲0.27MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 8 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
spt_plugin_installed_time
widget_recent-posts
spt_plugin_installed_time_donate

Browser metrics Passed 4 tests

Simple Posts Ticker - Easy, Lightweight & Flexible: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,935 ▲18913.63 ▼0.729.29 ▲7.5942.52 ▼0.85
Dashboard /wp-admin2,220 ▲435.56 ▼0.0783.59 ▼16.8440.09 ▼6.88
Posts /wp-admin/edit.php2,128 ▲282.02 ▲0.0437.50 ▲3.5238.05 ▲0.75
Add New Post /wp-admin/post-new.php1,549 ▲2323.67 ▲0.23659.58 ▼34.3849.05 ▼12.22
Media Library /wp-admin/upload.php1,428 ▲284.24 ▲0.0697.69 ▼0.9542.86 ▼0.82
Add New /wp-admin/post-new.php?post_type=spt_ticker1,5652.5459.4449.77
Simple Posts Ticker /wp-admin/options-general.php?page=simple-posts-ticker3,1532.7975.3870.09
All Tickers /wp-admin/edit.php?post_type=spt_ticker1,1001.9329.9332.69

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • spt_plugin_installed_time_donate
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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
Almost there! Just fix the following items
  • 10× 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/simple-posts-ticker/admin/post-type.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/simple-posts-ticker/public/render.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-posts-ticker/admin/settings-loader.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-posts-ticker/admin/meta-box.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-posts-ticker/admin/notice.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/simple-posts-ticker/admin/settings-page.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-posts-ticker/admin/donate.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-posts-ticker/public/load.php:13
    • > PHP Warning
      Use of undefined constant SPT_PLUGIN_VERSION - assumed 'SPT_PLUGIN_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/simple-posts-ticker/admin/settings-page.php on line 15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-posts-ticker/admin/tools.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration Passed 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
7 plugin tags: jquery posts ticker, event ticker, news ticker, marquee, posts ticker...

simple-posts-ticker/simple-posts-ticker.php Passed 13 tests

The principal PHP file in "Simple Posts Ticker - Easy, Lightweight & Flexible" v. 1.1.6 is loaded by WordPress automatically on each request
100 characters long description:
The Simple Posts Ticker plugin is a small tool that shows your most recent posts in a marquee style.

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 plugin2,076 lines of code in 25 files:
LanguageFilesBlank linesComment linesLines of code
PHP141851831,515
JavaScript62027267
CSS32819186
SVG10099
XML1009

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions72
▷ Named functions6488.89%
▷ Anonymous functions811.11%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin