84% easy-filterable-gallery

Code Review | Easy Filterable Gallery

WordPress plugin Easy Filterable Gallery scored84%from 54 tests.

About plugin

  • Plugin page: easy-filterable-g...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.2.1
  • WordPress version: 6.3.1
  • First release: Jul 4, 2019
  • Latest release: Jul 4, 2019
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: kaniaa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,235 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
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.57ms] Passed 4 tests

A check of server-side resources used by Easy Filterable Gallery
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.17 ▼3.76
Dashboard /wp-admin3.35 ▲0.0044.50 ▼15.66
Posts /wp-admin/edit.php3.40 ▲0.0445.38 ▲2.36
Add New Post /wp-admin/post-new.php5.93 ▲0.0489.36 ▼1.46
Media Library /wp-admin/upload.php3.27 ▲0.0433.66 ▼1.39
Gallery Category /wp-admin/edit-tags.php?taxonomy=gallery_taxonomy&post_type=gallery3.2761.66
Add New /wp-admin/post-new.php?post_type=gallery3.3952.54
Gallery /wp-admin/edit.php?post_type=gallery3.3237.64

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Easy Filterable Gallery
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,917 ▲17113.56 ▼0.828.19 ▲6.4740.49 ▲1.50
Dashboard /wp-admin2,234 ▲495.86 ▲0.0496.98 ▼5.3539.49 ▲1.06
Posts /wp-admin/edit.php2,120 ▲342.02 ▼0.0440.07 ▲2.3836.32 ▼0.59
Add New Post /wp-admin/post-new.php1,559 ▲4523.24 ▲5.72633.88 ▼45.9061.60 ▲0.69
Media Library /wp-admin/upload.php1,419 ▲314.20 ▼0.05100.08 ▼10.7742.44 ▼4.74
Gallery Category /wp-admin/edit-tags.php?taxonomy=gallery_taxonomy&post_type=gallery1,2962.1426.3428.04
Add New /wp-admin/post-new.php?post_type=gallery2,2817.73163.8361.93
Gallery /wp-admin/edit.php?post_type=gallery1,0931.9631.4630.98

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/easy-filterable-gallery/easy-filterable-gallery.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: filterable gallery, post type gallery, responsive gallery, free gallery, free portfolio

easy-filterable-gallery/easy-filterable-gallery.php Passed 13 tests

The primary PHP file in "Easy Filterable Gallery" version 1.0 is used by WordPress to initiate all plugin functionality
98 characters long description:
Plugin allow to create a cool gallery filtered by category. It's free, easy and fully responsive.

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
Everything looks great! No dangerous files found in this plugin184 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS111096
PHP1231176
JavaScript13012

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity6.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%
Functions0
▷ Named functions00.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
There were not PNG files found in your plugin