10% tt-post-viewer

Code Review | TT Post Viewer

WordPress plugin TT Post Viewer scored 10% from 54 tests.

About plugin

  • Plugin page: tt-post-viewer
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 5.8.1
  • First release: Feb 26, 2014
  • Latest release: Jan 17, 2015
  • Number of updates: 22
  • Update frequency: every 14.8 days
  • Top authors: rashed.latif (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active / 5,129 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • The plugin did not install without errors
    • > Warning in wp-content/plugins/tt-post-viewer/includes.php+5
    include(wp-content/plugins/tt-post-viewer/ttpv-widgets/database-functions.php): failed to open stream: No such file or directory

Server metrics [RAM: ▼1.74MB] [CPU: ▼189.82ms] Passed 4 tests

This is a short check of server-side resources used by TT Post Viewer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /1.89 ▼0.828.35 ▼15.47
Dashboard /wp-admin1.91 ▼1.147.82 ▼37.41
Posts /wp-admin/edit.php1.91 ▼1.199.24 ▼39.18
Add New Post /wp-admin/post-new.php1.91 ▼3.525.67 ▼654.40
Media Library /wp-admin/upload.php1.91 ▼1.098.19 ▼28.27
Post Viewer Options /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php1.915.50

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 33 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by TT Post Viewer
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,725 ▲12916.21 ▲0.709.53 ▼1.0350.90 ▼0.45
Dashboard /wp-admin2,990 ▲596.34 ▲0.45165.31 ▲16.43123.44 ▲10.19
Posts /wp-admin/edit.php2,786 ▲472.56 ▼0.1294.32 ▲19.23111.21 ▲10.65
Add New Post /wp-admin/post-new.php1,577 ▼10619.79 ▲1.37387.80 ▼3.05130.43 ▲18.96
Media Library /wp-admin/upload.php1,851 ▲415.53 ▲0.51140.94 ▼10.73126.41 ▼1.37
Post Viewer Options /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php3,7463.17100.4498.64

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
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/tt-post-viewer/includes.php+5
    include(wp-content/plugins/tt-post-viewer/ttpv-widgets/database-functions.php): failed to open stream: No such file or directory

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Warning in wp-content/plugins/tt-post-viewer/includes.php+5
    include(wp-content/plugins/tt-post-viewer/ttpv-widgets/database-functions.php): failed to open stream: No such file or directory
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Warning in wp-content/plugins/tt-post-viewer/includes.php+5
    include(): Failed opening 'wp-content/plugins/tt-post-viewer/ttpv-widgets/database-functions.php' for inclusion (include_path='.:/usr/share/php')
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Deprecated in wp-content/plugins/tt-post-viewer/ttpv-widgets/ttpv-recentpost-widget.php+8
    Non-static method TT_PostViewer::get_option_values() should not be called statically
  • 24 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+76
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Deprecated in wp-content/plugins/tt-post-viewer/tt-post-viewer.php+233
    Non-static method TT_PostViewer::add_menu_page() should not be called statically
  • 9 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/tt-post-viewer.php+180
    Undefined variable: option_page
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Deprecated in wp-includes/class-wp-hook.php+303
    Non-static method TT_PostViewer::display_option_page() should not be called statically
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > User deprecated in wp-includes/functions.php+5221
    screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > User deprecated in wp-includes/functions.php+5221
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/tt-post-viewer.php+107
    Undefined variable: options_page
  • 48 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+88
    Undefined variable: selected
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+35
    Undefined index: ttpv_chk_recentpost_shortcode
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+23
    Undefined index: ttpv_txt_recentpost_shortcode_number
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+76
    Undefined index: ttpv_drp_recentpost_shortcode_postdisplay
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+76
    Undefined index: ttpv_drp_recentpost_shortcode_excerpt
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+23
    Undefined index: ttpv_txt_recentpost_shortcode_excerpt_number
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+23
    Undefined index: ttpv_txt_mostpopular_title
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+35
    Undefined index: ttpv_chk_mostpopular_widget
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+23
    Undefined index: ttpv_txt_mostpopular_widget_number
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+76
    Undefined index: ttpv_drp_mostpopular_widget_postdisplay
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+35
    Undefined index: ttpv_chk_mostpopular_shortcode
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+23
    Undefined index: ttpv_txt_mostpopular_shortcode_number
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+76
    Undefined index: ttpv_drp_mostpopular_shortcode_postdisplay
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+76
    Undefined index: ttpv_drp_mostpopular_shortcode_excerpt
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+23
    Undefined index: ttpv_txt_mostpopular_shortcode_excerpt_number
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+23
    Undefined index: ttpv_txt_mostcommented_title
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+35
    Undefined index: ttpv_chk_mostcommented_widget
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+23
    Undefined index: ttpv_txt_mostcommented_widget_number
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+76
    Undefined index: ttpv_drp_mostcommented_widget_postdisplay
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+35
    Undefined index: ttpv_chk_mostcommented_shortcode
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+23
    Undefined index: ttpv_txt_mostcommented_shortcode_number
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+76
    Undefined index: ttpv_drp_mostcommented_shortcode_postdisplay
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+76
    Undefined index: ttpv_drp_mostcommented_shortcode_excerpt
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+23
    Undefined index: ttpv_txt_mostcommented_shortcode_excerpt_number
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+23
    Undefined index: ttpv_txt_related_title
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+35
    Undefined index: ttpv_chk_related_widget
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+23
    Undefined index: ttpv_txt_related_widget_number
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+76
    Undefined index: ttpv_drp_related_widget_postdisplay
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+35
    Undefined index: ttpv_chk_related_shortcode
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+23
    Undefined index: ttpv_txt_related_shortcode_number
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+76
    Undefined index: ttpv_drp_related_shortcode_postdisplay
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+76
    Undefined index: ttpv_drp_related_shortcode_excerpt
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+23
    Undefined index: ttpv_txt_related_shortcode_excerpt_number
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+23
    Undefined index: ttpv_txt_featured_title
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+35
    Undefined index: ttpv_chk_featured_widget
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+23
    Undefined index: ttpv_txt_featured_widget_number
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+76
    Undefined index: ttpv_drp_featured_widget_postdisplay
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+35
    Undefined index: ttpv_chk_featured_shortcode
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+23
    Undefined index: ttpv_txt_featured_shortcode_number
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+76
    Undefined index: ttpv_drp_featured_shortcode_postdisplay
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+76
    Undefined index: ttpv_drp_featured_shortcode_excerpt
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+23
    Undefined index: ttpv_txt_featured_shortcode_excerpt_number
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+23
    Undefined index: ttpv_txt_authors_title
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+35
    Undefined index: ttpv_chk_authors_widget
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+23
    Undefined index: ttpv_txt_authors_widget_number
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+76
    Undefined index: ttpv_drp_authors_widget_postdisplay
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+35
    Undefined index: ttpv_chk_authors_shortcode
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+23
    Undefined index: ttpv_txt_authors_shortcode_number
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+76
    Undefined index: ttpv_drp_authors_shortcode_postdisplay
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+76
    Undefined index: ttpv_drp_authors_shortcode_excerpt
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+23
    Undefined index: ttpv_txt_authors_shortcode_excerpt_number
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+23
    Undefined index: ttpv_txt_category_title
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+35
    Undefined index: ttpv_chk_category_widget
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+23
    Undefined index: ttpv_txt_category_widget_number
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+76
    Undefined index: ttpv_drp_category_widget_postdisplay
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+35
    Undefined index: ttpv_chk_category_shortcode
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+23
    Undefined index: ttpv_txt_category_shortcode_number
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+76
    Undefined index: ttpv_drp_category_shortcode_postdisplay
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+76
    Undefined index: ttpv_drp_category_shortcode_excerpt
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+23
    Undefined index: ttpv_txt_category_shortcode_excerpt_number
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+23
    Undefined index: ttpv_txt_bydate_title
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+35
    Undefined index: ttpv_chk_bydate_widget
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+23
    Undefined index: ttpv_txt_bydate_widget_number
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+76
    Undefined index: ttpv_drp_bydate_widget_postdisplay
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+23
    Undefined index: ttpv_txt_bydate_widget_datepick1
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+23
    Undefined index: ttpv_txt_bydate_widget_datepick2
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+35
    Undefined index: ttpv_chk_bydate_shortcode
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+23
    Undefined index: ttpv_txt_bydate_shortcode_number
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+76
    Undefined index: ttpv_drp_bydate_shortcode_postdisplay
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+23
    Undefined index: ttpv_txt_bydate_shortcode_datepick1
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+23
    Undefined index: ttpv_txt_bydate_shortcode_datepick2
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+76
    Undefined index: ttpv_drp_bydate_shortcode_excerpt
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Notice in wp-content/plugins/tt-post-viewer/required-functions.php+23
    Undefined index: ttpv_txt_bydate_shortcode_excerpt_number

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
The following issues need your attention
  • 18× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tt-post-viewer/ttpv-widgets/ttpv-bydate-widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/tt-post-viewer/required-functions.php:276
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tt-post-viewer/ttpv-widgets/ttpv-mostpopular-widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tt-post-viewer/ttpv-shortcodes/ttpv-authors-shortcode.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tt-post-viewer/ttpv-widgets/ttpv-recentpost-widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function remove_action() in wp-content/plugins/tt-post-viewer/required-functions.php:276
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tt-post-viewer/ttpv-widgets/ttpv-featured-widget.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tt-post-viewer/ttpv-shortcodes/ttpv-recentpost-shortcode.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tt-post-viewer/ttpv-shortcodes/ttpv-related-shortcode.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tt-post-viewer/ttpv-shortcodes/ttpv-mostcommented-shortcode.php:2

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/options-general.php?page=tt-post-viewer/tt-post-viewer.php
    • > Network (severe)
    wp-content/plugins/tt-post-viewer/images/ui-bg_flat_75_ffffff_40x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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
Attributes that need to be fixed:
  • Tags: There are too many tags (23 tag instead of maximum 10)
The official readme.txt is a good inspiration

tt-post-viewer/tt-post-viewer.php 92% from 13 tests

The main PHP file in "TT Post Viewer" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 217 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin3,912 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP226131483,394
CSS37071480
JavaScript112238

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity17.00
▷ Minimum class complexity12.00
▷ Maximum class complexity21.00
Average method complexity3.57
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods57
▷ Static methods00.00%
▷ Public methods57100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions42
▷ Named functions42100.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
6 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-5.png39.22KB23.94KB▼ 38.97%
assets/screenshot-2.png11.11KB7.29KB▼ 34.41%
images/default-image.png11.20KB6.01KB▼ 46.36%
assets/screenshot-4.png12.30KB7.98KB▼ 35.13%
assets/screenshot-1.png3.13KB1.74KB▼ 44.45%