icon-256x256
  • 90% remove-jquery-migrate-safely

    Code Review | Remove jQuery Migrate Safely

    WordPress plugin Remove jQuery Migrate Safely scored90%from 54 tests.

    About plugin

    • Plugin page: remove-jquery-mig...
    • Plugin version: 1.0.0
    • PHP compatiblity: 5.6+
    • PHP version: 7.4.16
    • WordPress compatibility: 3.6-4.9
    • WordPress version: 6.3.1
    • First release: Aug 28, 2018
    • Latest release: Aug 28, 2018
    • Number of updates: 3
    • Update frequency: N/A
    • Top authors: dotlayer (100%)

    Code review

    54 tests

    User reviews

    1 review

    Install metrics

    100+ active /1,436 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.01MB] [CPU: ▼6.63ms] Passed 4 tests

    Server-side resources used by Remove jQuery Migrate Safely
    Server-side resource usage in normal parameters
    PageMemory (MB)CPU Time (ms)
    Home /3.47 ▲0.0138.04 ▼1.38
    Dashboard /wp-admin3.31 ▲0.0143.79 ▼6.16
    Posts /wp-admin/edit.php3.36 ▲0.0147.96 ▼17.53
    Add New Post /wp-admin/post-new.php5.89 ▲0.0190.91 ▼1.45
    Media Library /wp-admin/upload.php3.23 ▲0.0037.30 ▲3.14

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

    Input-output and database impact of this plugin
    This plugin was installed successfully
    Filesystem: 7 new files
    Database: no new tables, 6 new options
    New WordPress options
    can_compress_scripts
    widget_theysaidso_widget
    widget_recent-comments
    widget_recent-posts
    db_upgraded
    theysaidso_admin_options

    Browser metrics Passed 4 tests

    This is an overview of browser requirements for Remove jQuery Migrate Safely
    This plugin has a minimal impact on browser resources
    PageNodesMemory (MB)Script (ms)Layout (ms)
    Home /2,798 ▲6313.23 ▼1.421.55 ▼0.3040.37 ▼4.12
    Dashboard /wp-admin2,206 ▲185.80 ▲0.9098.46 ▼6.5639.05 ▼5.22
    Posts /wp-admin/edit.php2,089 ▼01.99 ▼0.0239.99 ▼0.3134.07 ▼4.34
    Add New Post /wp-admin/post-new.php1,542 ▲918.38 ▼4.96604.57 ▼35.8061.57 ▲12.29
    Media Library /wp-admin/upload.php1,391 ▼04.19 ▼0.0193.75 ▼2.2839.34 ▼3.61

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

    🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
    These items require your attention
    • This plugin did not uninstall successfully, leaving 6 options in the database
      • widget_recent-posts
      • widget_theysaidso_widget
      • widget_recent-comments
      • can_compress_scripts
      • db_upgraded
      • theysaidso_admin_options

    Smoke tests Passed 4 tests

    Server-side errors Passed 1 test

    🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
    Good news, no errors were detected

    SRP Passed 2 tests

    🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
    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 on the user side

    Optimizations

    Plugin configuration 96% from 29 tests

    readme.txt Passed 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
    8 plugin tags: jquery, website performance, pageload speed, jquery migrate, front end optimizations...

    remove-jquery-migrate-safely/remove-jquery-migrate.php 92% from 13 tests

    The main PHP file in "Remove jQuery Migrate Safely" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
    It is important to fix the following:
    • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("remove-jquery-migrate-safely.php" instead of "remove-jquery-migrate.php")

    Code Analysis Passed 3 tests

    File types Passed 1 test

    🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
    Everything looks great! No dangerous files found in this plugin61 lines of code in 5 files:
    LanguageFilesBlank linesComment linesLines of code
    Markdown110030
    PHP397024
    JSON1007

    PHP code Passed 2 tests

    Analyzing cyclomatic complexity and code structure
    No complexity issues detected
    Cyclomatic complexity
    Average complexity per logical line of code1.00
    Average class complexity4.00
    ▷ Minimum class complexity4.00
    ▷ Maximum class complexity4.00
    Average method complexity4.00
    ▷ Minimum method complexity4.00
    ▷ Maximum method complexity4.00
    Code structure
    Namespaces0
    Interfaces0
    Traits0
    Classes1
    ▷ Abstract classes00.00%
    ▷ Concrete classes1100.00%
    ▷ Final classes00.00%
    Methods1
    ▷ Static methods1100.00%
    ▷ Public methods1100.00%
    ▷ Protected methods00.00%
    ▷ Private methods00.00%
    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

    All PNG images should be compressed to minimize bandwidth usage for end users
    No PNG files were detected