icon-128x128
  • 84% blog-coach

    Code Review | Blog Coach

    WordPress plugin Blog Coach scored84%from 54 tests.

    About plugin

    • Plugin page: blog-coach
    • Plugin version: 1.0.0
    • PHP version: 7.4.16
    • WordPress compatibility: 3.0.1-4.4.2
    • WordPress version: 6.3.1
    • First release: Feb 8, 2016
    • Latest release: Feb 8, 2016
    • Number of updates: 11
    • Update frequency: N/A
    • Top authors: countrymusicchicago (100%)

    Code review

    54 tests

    User reviews

    1 review

    Install metrics

    10+ active /980 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.18MB] [CPU: ▼17.42ms] Passed 4 tests

    Analyzing server-side resources used by Blog Coach
    No issues were detected with server-side resource usage
    PageMemory (MB)CPU Time (ms)
    Home /3.53 ▲0.0746.36 ▲5.20
    Dashboard /wp-admin3.12 ▼0.1830.99 ▼20.69
    Posts /wp-admin/edit.php3.26 ▼0.1031.94 ▼16.86
    Add New Post /wp-admin/post-new.php5.50 ▼0.3969.37 ▼25.75
    Media Library /wp-admin/upload.php3.20 ▼0.0330.56 ▼6.39

    Server storage [IO: ▲0.02MB] [DB: ▲0.24MB] Passed 3 tests

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

    Browser metrics Passed 4 tests

    An overview of browser requirements for Blog Coach
    Minimal impact on browser resources
    PageNodesMemory (MB)Script (ms)Layout (ms)
    Home /2,947 ▲18614.38 ▼0.151.83 ▼0.3344.51 ▼1.44
    Dashboard /wp-admin2,335 ▲1605.77 ▲0.1391.11 ▼48.6373.92 ▲15.80
    Posts /wp-admin/edit.php2,197 ▲1002.30 ▲0.3344.74 ▲8.5839.58 ▲5.44
    Add New Post /wp-admin/post-new.php1,560 ▲3423.27 ▲0.41657.24 ▲18.3638.64 ▼13.01
    Media Library /wp-admin/upload.php1,492 ▲894.25 ▲0.11101.04 ▲3.2781.10 ▲36.04

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

    🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
    Please fix the following items
    • Zombie WordPress options were found after uninstall: 6 options
      • db_upgraded
      • can_compress_scripts
      • widget_recent-comments
      • theysaidso_admin_options
      • widget_theysaidso_widget
      • widget_recent-posts

    Smoke tests 75% from 4 tests

    Server-side errors Passed 1 test

    🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
    Good news, no errors were detected

    SRP 50% from 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
    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/blog-coach/blog-coach.php:9

    User-side errors Passed 1 test

    🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
    No browser errors were detected

    Optimizations

    Plugin configuration Passed 29 tests

    readme.txt Passed 16 tests

    The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
    3 plugin tags: coach, writing, blogging coach

    blog-coach/blog-coach.php Passed 13 tests

    This is the main PHP file of "Blog Coach" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
    105 characters long description:
    A plugin to help you maintain a healthy blog workflow with a simple visual reminder in the admin toolbar.

    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
    There were no executable files found in this plugin388 lines of code in 2 files:
    LanguageFilesBlank linesComment linesLines of code
    PHP17972352
    JavaScript16036

    PHP code Passed 2 tests

    Analyzing cyclomatic complexity and code structure
    No cyclomatic complexity issues were detected for this plugin
    Cyclomatic complexity
    Average complexity per logical line of code0.26
    Average class complexity4.00
    ▷ Minimum class complexity4.00
    ▷ Maximum class complexity4.00
    Average method complexity1.75
    ▷ Minimum method complexity1.00
    ▷ Maximum method complexity4.00
    Code structure
    Namespaces0
    Interfaces0
    Traits0
    Classes1
    ▷ Abstract classes00.00%
    ▷ Concrete classes1100.00%
    ▷ Final classes00.00%
    Methods4
    ▷ Static methods00.00%
    ▷ Public methods375.00%
    ▷ Protected methods00.00%
    ▷ Private methods125.00%
    Functions17
    ▷ Named functions17100.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 compressed PNG file occupies 0.00MB
    Potential savings
    Compression of 1 random PNG file using pngquant
    FileSize - originalSize - compressedSavings
    icon.png0.66KB0.79KB0.00%