83% wp-post-ticker

Code Review | WP Post Ticker

WordPress plugin WP Post Ticker scored83%from 54 tests.

About plugin

  • Plugin page: wp-post-ticker
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-4.4.2
  • WordPress version: 6.3.1
  • First release: Jun 11, 2016
  • Latest release: Mar 19, 2017
  • Number of updates: 9
  • Update frequency: every 31.3 days
  • Top authors: devcon1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,536 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼21.08ms] Passed 4 tests

Server-side resources used by WP Post Ticker
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2336.58 ▲0.38
Dashboard /wp-admin3.42 ▲0.0730.02 ▼28.43
Posts /wp-admin/edit.php3.49 ▲0.1432.62 ▼18.59
Add New Post /wp-admin/post-new.php5.68 ▼0.2065.73 ▼31.99
Media Library /wp-admin/upload.php3.39 ▲0.1626.83 ▼5.31
Global Style Settings /wp-admin/admin.php?page=wppt_admin_menu_global_style3.4028.90
All Post Tickers /wp-admin/edit.php?post_type=wppt_post_ticker3.4731.26
Instructions /wp-admin/admin.php?page=wppt_admin_menu_instruction3.4028.52

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 107 new files
Database: no new tables, 26 new options
New WordPress options
wppt_global_container_post_display_title
wppt_global_container_title_nav_border_bottom
wppt_global_container_post_display_meta_two
wppt_global_container_title_font_size
wppt_global_container_border_left
wppt_global_container_post_display_meta_one
wppt_global_container_border_bottom
widget_recent-posts
db_upgraded
widget_wp-post-ticker-widget
...

Browser metrics Passed 4 tests

An overview of browser requirements for WP Post Ticker
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,094 ▲34815.25 ▲0.886.99 ▲5.1938.08 ▼3.54
Dashboard /wp-admin2,405 ▲2176.57 ▲1.63126.62 ▲11.6088.40 ▲30.55
Posts /wp-admin/edit.php2,310 ▲2183.37 ▲1.3346.73 ▲5.6872.64 ▲35.14
Add New Post /wp-admin/post-new.php6,301 ▲4,78225.91 ▲2.58857.25 ▲229.0041.23 ▼8.60
Media Library /wp-admin/upload.php1,453 ▲624.25 ▲0.0478.81 ▼21.6062.28 ▲18.74
Global Style Settings /wp-admin/admin.php?page=wppt_admin_menu_global_style2,5553.8562.3173.79
All Post Tickers /wp-admin/edit.php?post_type=wppt_post_ticker1,2903.5546.2268.18
Instructions /wp-admin/admin.php?page=wppt_admin_menu_instruction1,3863.1639.59109.50

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
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_wp-post-ticker-widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=wppt_admin_menu_instruction
    • > Notice in wp-content/plugins/wp-post-ticker/admin/class-wp-post-ticker-admin.php+79
    Undefined property: WP_Post_ticker_Admin::$plugin_name

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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Screenshots: Please add descriptions for these screenshots #0, #0, #0, #0 in wp-post-ticker/assets to your readme.txt
  • Screenshots: Add images for these screenshots: #1 (screenshot-front-end.jpg shows how the plugin display looks.), #2 (screenshot-individual-settings.jpg shows how you can override global settings from each post ticker setting.), #3 (screenshot-global-settings.jpg shows you how you can configure global settings with styles.), #4 (screenshot-instructions.jpg shows you the instruction which can be viewed when the plugin is installed.)
You can look at the official readme.txt

wp-post-ticker/wp-post-ticker.php 92% from 13 tests

Analyzing the main PHP file in "WP Post Ticker" version 1.0.8
The following require your attention:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 245 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
Everything looks great! No dangerous files found in this plugin5,739 lines of code in 51 files:
LanguageFilesBlank linesComment linesLines of code
PHP391846322,958
JavaScript51971881,177
CSS511820781
SVG100655
HTML14711168

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.62
Average class complexity13.12
▷ Minimum class complexity1.00
▷ Maximum class complexity90.00
Average method complexity2.37
▷ Minimum method complexity1.00
▷ Maximum method complexity83.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods71
▷ Static methods22.82%
▷ Public methods6692.96%
▷ Protected methods00.00%
▷ Private methods57.04%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/assets/admin-icon.png1.64KB0.76KB▼ 53.52%