90% wp-posts-ticker

Code Review | WP Posts Ticker

WordPress plugin WP Posts Ticker scored90%from 54 tests.

About plugin

  • Plugin page: wp-posts-ticker
  • Plugin version: 1.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.8.2
  • WordPress version: 6.3.1
  • First release: Sep 26, 2017
  • Latest release: Sep 26, 2017
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: hamzarauf (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

20+ active /1,231 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.29ms] Passed 4 tests

This is a short check of server-side resources used by WP Posts Ticker
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.65 ▼0.22
Dashboard /wp-admin3.33 ▲0.0348.97 ▼6.74
Posts /wp-admin/edit.php3.38 ▲0.0353.68 ▲2.03
Add New Post /wp-admin/post-new.php5.93 ▲0.0598.75 ▲5.01
Media Library /wp-admin/upload.php3.26 ▲0.0334.80 ▼0.24

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

WP Posts Ticker: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲8814.37 ▼0.011.69 ▼0.1348.34 ▼0.07
Dashboard /wp-admin2,226 ▲555.76 ▲0.1092.44 ▼9.9442.87 ▼0.91
Posts /wp-admin/edit.php2,133 ▲332.29 ▲0.2741.22 ▲3.6934.40 ▼1.57
Add New Post /wp-admin/post-new.php1,550 ▲2323.59 ▲0.56613.57 ▼90.7036.68 ▼17.47
Media Library /wp-admin/upload.php1,431 ▲314.39 ▲0.22101.49 ▼6.0945.98 ▼3.78

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests Passed 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)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: newsticker, rotate, news, blog, magzine...

wp-posts-ticker/newsticker.php 92% from 13 tests

The primary PHP file in "WP Posts Ticker" version 1.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-posts-ticker.php" instead of "newsticker.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 plugin242 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP48536169
CSS16070
JavaScript1003

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png2.70KB1.78KB▼ 34.02%
assets/screenshot-1.png22.57KB11.89KB▼ 47.33%
assets/banner-772x250.png22.57KB11.89KB▼ 47.33%
assets/screenshot-2.png2.70KB1.78KB▼ 34.02%