icon-256x256.art4/
  • 84% hide-trackbacks

    Code Review | Hide Trackbacks

    WordPress plugin Hide Trackbacks scored84%from 54 tests.

    About plugin

    • Plugin page: hide-trackbacks
    • Plugin version: 1.1.5
    • PHP compatiblity: 7.0+
    • PHP version: 7.4.16
    • WordPress compatibility: 5.8-6.0
    • WordPress version: 6.3.1
    • First release: May 10, 2011
    • Latest release: May 6, 2022
    • Number of updates: 30
    • Update frequency: every 133.8 days
    • Top authors: pacifika (96.67%)deployer (6.67%)

    Code review

    54 tests

    User reviews

    6 reviews

    Install metrics

    700+ active /14,550 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 gracefully, with no errors

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

    Analyzing server-side resources used by Hide Trackbacks
    Normal server usage
    PageMemory (MB)CPU Time (ms)
    Home /3.49 ▲0.0340.93 ▼0.26
    Dashboard /wp-admin3.32 ▲0.0248.38 ▼6.02
    Posts /wp-admin/edit.php3.38 ▲0.0249.87 ▼6.57
    Add New Post /wp-admin/post-new.php5.90 ▲0.0189.12 ▼11.66
    Media Library /wp-admin/upload.php3.24 ▲0.0138.22 ▲1.32

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

    Filesystem and database footprint
    There were no storage issued detected upon installing this plugin
    Filesystem: 2 new files
    Database: no new tables, 6 new options
    New WordPress options
    theysaidso_admin_options
    can_compress_scripts
    widget_theysaidso_widget
    widget_recent-posts
    widget_recent-comments
    db_upgraded

    Browser metrics Passed 4 tests

    An overview of browser requirements for Hide Trackbacks
    This plugin renders optimally with no browser resource issues detected
    PageNodesMemory (MB)Script (ms)Layout (ms)
    Home /2,814 ▲5314.23 ▼0.121.96 ▲0.0340.95 ▼2.79
    Dashboard /wp-admin2,195 ▲185.61 ▼0.0790.58 ▼3.5539.33 ▼3.02
    Posts /wp-admin/edit.php2,100 ▲32.09 ▲0.1240.95 ▲4.0733.47 ▼1.18
    Add New Post /wp-admin/post-new.php1,526 ▼023.15 ▼0.59690.22 ▼27.8458.36 ▼0.69
    Media Library /wp-admin/upload.php1,403 ▼04.21 ▲0.05102.87 ▼0.6444.33 ▼2.83

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

    🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
    Please fix the following items
    • The uninstall procedure has failed, leaving 6 options in the database
      • widget_theysaidso_widget
      • theysaidso_admin_options
      • db_upgraded
      • can_compress_scripts
      • widget_recent-comments
      • widget_recent-posts

    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 | 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
    The following issues need your attention
    • 1× PHP files trigger errors when accessed directly with GET requests:
      • > PHP Fatal error
        Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hide-trackbacks/hide-trackbacks.php:129

    User-side errors Passed 1 test

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

    Optimizations

    Plugin configuration Passed 29 tests

    readme.txt Passed 16 tests

    It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
    6 plugin tags: trackback, comments, spam, trackbacks, pingbacks...

    hide-trackbacks/hide-trackbacks.php Passed 13 tests

    The primary PHP file in "Hide Trackbacks" version 1.1.5 is used by WordPress to initiate all plugin functionality
    76 characters long description:
    Prevents trackbacks and pingbacks from showing up as comments on your posts.

    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
    Success! There were no dangerous files found in this plugin46 lines of code in 1 file:
    LanguageFilesBlank linesComment linesLines of code
    PHP1206346

    PHP code Passed 2 tests

    A brief analysis of cyclomatic complexity and code structure for this plugin
    All good! No complexity issues found
    Cyclomatic complexity
    Average complexity per logical line of code0.14
    Average class complexity4.00
    ▷ Minimum class complexity4.00
    ▷ Maximum class complexity4.00
    Average method complexity1.43
    ▷ Minimum method complexity1.00
    ▷ Maximum method complexity4.00
    Code structure
    Namespaces0
    Interfaces0
    Traits0
    Classes1
    ▷ Abstract classes00.00%
    ▷ Concrete classes1100.00%
    ▷ Final classes00.00%
    Methods7
    ▷ Static methods00.00%
    ▷ Public methods571.43%
    ▷ Protected methods00.00%
    ▷ Private methods228.57%
    Functions1
    ▷ Named functions1100.00%
    ▷ Anonymous functions00.00%
    Constants0
    ▷ Global constants00.00%
    ▷ Class constants00.00%
    ▷ Public constants00.00%

    Plugin size Passed 2 tests

    Image compression Passed 2 tests

    It is recommended to compress PNG files in your plugin to minimize bandwidth usage
    There are no PNG files in this plugin