73% bee-quick-gallery

Code Review | Image Gallery

WordPress plugin Image Gallery scored73%from 54 tests.

About plugin

  • Plugin page: bee-quick-gallery
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.5
  • WordPress version: 6.3.1
  • First release: Nov 4, 2016
  • Latest release: Nov 18, 2016
  • Number of updates: 78
  • Update frequency: every 2.7 days
  • Top authors: aumsrini (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

40+ active /4,153 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.30MB] [CPU: ▼16.78ms] Passed 4 tests

A check of server-side resources used by Image Gallery
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.88 ▲0.4133.73 ▼11.30
Dashboard /wp-admin3.64 ▲0.2936.58 ▼32.74
Posts /wp-admin/edit.php3.78 ▲0.4239.22 ▼8.36
Add New Post /wp-admin/post-new.php5.96 ▲0.0786.14 ▼14.73
Media Library /wp-admin/upload.php3.66 ▲0.4338.60 ▲1.57
Options /wp-admin/edit.php?post_type=bee_quick_gallery&page=quick_gal_options3.8239.10
Galleries /wp-admin/edit.php?post_type=bee_quick_gallery3.7536.54
Add Gallery /wp-admin/post-new.php?post_type=bee_quick_gallery3.8342.35

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 277 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Image Gallery
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,001 ▲24013.58 ▼0.7915.83 ▲13.9943.28 ▲0.23
Dashboard /wp-admin2,232 ▲585.56 ▼0.1487.54 ▼4.0878.69 ▲36.68
Posts /wp-admin/edit.php2,153 ▲532.01 ▼0.0138.71 ▼4.1834.90 ▼2.60
Add New Post /wp-admin/post-new.php1,730 ▲19921.87 ▼1.40730.26 ▲65.9846.11 ▼14.56
Media Library /wp-admin/upload.php1,449 ▲494.34 ▲0.07112.19 ▲13.0783.77 ▲38.75
Options /wp-admin/edit.php?post_type=bee_quick_gallery&page=quick_gal_options1,0352.4162.3643.36
Galleries /wp-admin/edit.php?post_type=bee_quick_gallery1,1311.9441.8238.31
Add Gallery /wp-admin/post-new.php?post_type=bee_quick_gallery1,7033.7867.2390.89

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

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

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=bee_quick_gallery
    • > Notice in wp-content/plugins/bee-quick-gallery/includes/framework/extn/mb-settings-page/inc/settings-page-meta-box.php+162
    Trying to access array offset on value of type null

SRP 0% 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
Please take a closer look at the following
  • 5× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/bee-quick-gallery/includes/framework/inc/templates/image-advanced.php
    • > /wp-content/plugins/bee-quick-gallery/admin/partials/bee-quick-gallery-admin-display.php
    • > /wp-content/plugins/bee-quick-gallery/includes/framework/inc/templates/media.php
    • > /wp-content/plugins/bee-quick-gallery/public/partials/bee-quick-gallery-public-display.php
    • > /wp-content/plugins/bee-quick-gallery/includes/framework/inc/templates/upload.php
  • 53× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/bee-quick-gallery/includes/framework/inc/fields/input.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Media_Field' not found in wp-content/plugins/bee-quick-gallery/includes/framework/inc/fields/file-upload.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Text_Field' not found in wp-content/plugins/bee-quick-gallery/includes/framework/inc/fields/color.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Input_List_Field' not found in wp-content/plugins/bee-quick-gallery/includes/framework/inc/fields/radio.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Walker' not found in wp-content/plugins/bee-quick-gallery/includes/framework/inc/walkers/base.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Media_Field' not found in wp-content/plugins/bee-quick-gallery/includes/framework/inc/fields/image-advanced.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Text_Field' not found in wp-content/plugins/bee-quick-gallery/includes/framework/inc/fields/datetime.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Select_Field' not found in wp-content/plugins/bee-quick-gallery/includes/framework/inc/fields/select-advanced.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/bee-quick-gallery/includes/framework/inc/fields/choice.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/bee-quick-gallery/includes/framework/inc/fields/file.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: photo gallery, portfolio gallery, image gallery, grid gallery, responsive gallery...

bee-quick-gallery/bee-quick-gallery.php Passed 13 tests

The main PHP file in "Image Gallery" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.

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 plugin8,797 lines of code in 213 files:
LanguageFilesBlank linesComment linesLines of code
PHP859263,1964,395
JavaScript884965742,410
CSS351501151,916
SVG20039
PO File12427
JSON20010

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.33
Average class complexity6.81
▷ Minimum class complexity1.00
▷ Maximum class complexity49.00
Average method complexity2.28
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes73
▷ Abstract classes79.59%
▷ Concrete classes6690.41%
▷ Final classes00.00%
Methods331
▷ Static methods23871.90%
▷ Public methods31193.96%
▷ Protected methods154.53%
▷ Private methods51.51%
Functions20
▷ Named functions1890.00%
▷ Anonymous functions210.00%
Constants6
▷ Global constants6100.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
26 PNG files occupy 0.08MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
includes/framework/img/jqueryui/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%
public/css/images/gallery-pro.png16.60KB6.00KB▼ 63.88%
public/img/thumb/1.png2.26KB2.26KB0.13%
includes/framework/img/jqueryui/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%
includes/framework/img/jqueryui/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%