icon-128x128
  • 10% page-wise-gallery

    Code Review | Page Wise Gallery

    WordPress plugin Page Wise Gallery scored 10% from 54 tests.

    About plugin

    • Plugin page: page-wise-gallery
    • Plugin version: 1.0
    • PHP version: 7.4.16
    • WordPress compatibility: 3.0.1-4.3
    • WordPress version: 5.8.1
    • First release: Jul 10, 2015
    • Latest release: Sep 15, 2015
    • Number of updates: 7
    • Update frequency: every 9.7 days
    • Top authors: Anupa Anand (100%)

    Code review

    54 tests

    User reviews

    1 review

    Install metrics

    10+ active / 1,020 total downloads

    Benchmarks

    Plugin footprint 40% from 16 tests

    Installer 0% from 1 test

    🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
    Please fix the following installer errors
    • The plugin cannot be installed
      • > Deprecated in wp-content/plugins/page-wise-gallery/page-wise-gallery.php+63
      Methods with the same name as their class will not be constructors in a future version of PHP; pwg_gallery_plugin has a deprecated constructor

    Server metrics [RAM: ▼1.84MB] [CPU: ▼183.65ms] Passed 4 tests

    A check of server-side resources used by Page Wise Gallery
    This plugin has minimal impact on server resources
    PageMemory (MB)CPU Time (ms)
    Home /1.79 ▼1.045.58 ▼27.33
    Dashboard /wp-admin1.81 ▼1.246.40 ▼27.98
    Posts /wp-admin/edit.php1.81 ▼1.295.03 ▼32.05
    Add New Post /wp-admin/post-new.php1.81 ▼3.625.45 ▼642.17
    Media Library /wp-admin/upload.php1.81 ▼1.195.59 ▼32.41

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

    How much does this plugin use your filesystem and database?
    No storage issues were detected
    Filesystem: 7 new files
    Database: no new tables, 2 new options
    New WordPress options
    pwg_deferred_admin_notices
    widget_pwg_gallery_plugin

    Browser metrics Passed 4 tests

    Page Wise Gallery: an overview of browser usage
    This plugin renders optimally with no browser resource issues detected
    PageNodesMemory (MB)Script (ms)Layout (ms)
    Home /3,705 ▲10916.29 ▲0.7511.75 ▲1.7850.41 ▼1.28
    Dashboard /wp-admin2,982 ▲515.87 ▼0.27134.47 ▼10.37116.52 ▼0.85
    Posts /wp-admin/edit.php2,748 ▲122.71 ▼0.0163.50 ▼1.7998.82 ▲11.08
    Add New Post /wp-admin/post-new.php2,063 ▲45919.42 ▲0.61376.19 ▼12.60101.59 ▼3.21
    Media Library /wp-admin/upload.php1,816 ▲95.04 ▲0.01148.97 ▼5.54115.16 ▲1.27

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

    🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
    You still need to fix the following
    • This plugin cannot be uninstalled
      • > Deprecated in wp-content/plugins/page-wise-gallery/page-wise-gallery.php+63
      Methods with the same name as their class will not be constructors in a future version of PHP; pwg_gallery_plugin has a deprecated constructor
    • Zombie WordPress options detected upon uninstall: 2 options
      • widget_pwg_gallery_plugin
      • pwg_deferred_admin_notices

    Smoke tests 75% from 4 tests

    Server-side errors Passed 1 test

    🔹 Test weight: 20 | A smoke test targeting server-side errors
    Even though everything seems fine, this is not 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× GET requests to PHP files have triggered server-side errors or warnings:
      • > PHP Fatal error
        Uncaught Error: Call to undefined function add_action() in wp-content/plugins/page-wise-gallery/page-wise-gallery.php:14

    User-side errors Passed 1 test

    🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
    There were no browser issues found

    Optimizations

    Plugin configuration 97% from 29 tests

    readme.txt 94% from 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
    These attributes need your attention:
    • Screenshots: Screenshot #1 (screenshot-1 shows the admin widget area section) image missing
    Please take inspiration from this readme.txt

    page-wise-gallery/page-wise-gallery.php Passed 13 tests

    The entry point to "Page Wise Gallery" version 1.0 is a PHP file that has certain tags in its header comment area
    38 characters long description:
    Provides unique gallery for each page.

    Code Analysis Passed 3 tests

    File types Passed 1 test

    🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
    No dangerous file extensions were detected140 lines of code in 3 files:
    LanguageFilesBlank linesComment linesLines of code
    PHP12020113
    PO File12220
    CSS1007

    PHP code Passed 2 tests

    Analyzing 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.13
    Average class complexity5.00
    ▷ Minimum class complexity5.00
    ▷ Maximum class complexity5.00
    Average method complexity2.00
    ▷ 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 methods4100.00%
    ▷ Protected methods00.00%
    ▷ Private methods00.00%
    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

    All PNG images should be compressed to minimize bandwidth usage for end users
    PNG images were not found in this plugin