79% gallery-slider-for-pinterest

Code Review | Gallery-Slider & Follow Button For Pinterest & Responsive Image Slider

WordPress plugin Gallery-Slider & Follow Button For Pinterest & Responsive Image Slider scored79%from 54 tests.

About plugin

  • Plugin page: gallery-slider-fo...
  • Plugin version: 0.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Aug 6, 2021
  • Latest release: Dec 24, 2022
  • Number of updates: 30
  • Update frequency: every 16.9 days
  • Top authors: amitkumargunsara4 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /2,569 total downloads

Benchmarks

Plugin footprint 65% 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.36MB] [CPU: ▼4.36ms] Passed 4 tests

An overview of server-side resources used by Gallery-Slider & Follow Button For Pinterest & Responsive Image Slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.0940.71 ▲0.93
Dashboard /wp-admin3.83 ▲0.4951.28 ▼4.79
Posts /wp-admin/edit.php3.89 ▲0.4952.13 ▲4.67
Add New Post /wp-admin/post-new.php6.38 ▲0.4599.12 ▼12.69
Media Library /wp-admin/upload.php3.70 ▲0.4339.49 ▼0.89
All Slider /wp-admin/admin.php?page=gspnt-all-slider3.6647.20
Add New Slider /wp-admin/admin.php?page=gspnt-add-new-slider3.6636.78
User-Board Setting /wp-admin/admin.php?page=gspnt-setting3.6737.53
Add Grid Slid Pins /wp-admin/post-new.php?post_type=cdlzr_gspint3.7445.01
All Grid Slid Pins /wp-admin/admin.php?page=cdlzr_gspnt_box3.6634.47

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 192 new files
Database: 1 new table, 8 new options
New tables
wp_cdlzr_gspint_setting
New WordPress options
db_upgraded
WRIS_Settings
widget_recent-posts
widget_codelizar_pf
widget_recent-comments
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Gallery-Slider & Follow Button For Pinterest & Responsive Image Slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,959 ▲19813.56 ▼0.799.34 ▲7.7148.73 ▲6.73
Dashboard /wp-admin2,257 ▲805.65 ▼0.0190.24 ▼0.8339.60 ▼6.42
Posts /wp-admin/edit.php2,165 ▲652.02 ▲0.0435.54 ▼0.8235.23 ▼2.18
Add New Post /wp-admin/post-new.php1,581 ▲4422.99 ▲4.77662.08 ▲38.4151.38 ▼20.67
Media Library /wp-admin/upload.php1,465 ▲654.24 ▲0.0994.63 ▼16.8645.81 ▼2.08
All Slider /wp-admin/admin.php?page=gspnt-all-slider1,8122.7445.0648.84
Add New Slider /wp-admin/admin.php?page=gspnt-add-new-slider5,1039.84228.80218.44
User-Board Setting /wp-admin/admin.php?page=gspnt-setting1,1042.7243.1376.22
Add Grid Slid Pins /wp-admin/post-new.php?post_type=cdlzr_gspint3,0735.03127.7958.78
All Grid Slid Pins /wp-admin/admin.php?page=cdlzr_gspnt_box1,8282.7434.8933.49

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_cdlzr_gspint_setting
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_codelizar_pf
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • WRIS_Settings

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
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add descriptions for screenshots #1, #10, #11, #12, #13, #14, #15, #16, #17, #18, #19, #2, #20, #21, #3, #4, #5, #6, #7, #8, #9 in gallery-slider-for-pinterest/assets to your readme.txt
  • Tags: Please delete some tags, you are using 13 tag instead of maximum 10
You can look at the official readme.txt

gallery-slider-for-pinterest/grid-slid-pinterest.php 77% from 13 tests

Analyzing the main PHP file in "Gallery-Slider & Follow Button For Pinterest & Responsive Image Slider" version 0.6
You should first fix the following items:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("gallery-slider-for-pinterest.php" instead of "grid-slid-pinterest.php")
  • Text Domain: The text domain should only use lowercase characters and dashes

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
There were no executable files found in this plugin55,062 lines of code in 126 files:
LanguageFilesBlank linesComment linesLines of code
CSS322,4802,39516,785
JavaScript283,1792,37015,940
SVG802414,997
PHP265122003,567
Sass1643341,903
LESS1641511,870

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity11.21
▷ Minimum class complexity1.00
▷ Maximum class complexity100.00
Average method complexity3.56
▷ Minimum method complexity1.00
▷ Maximum method complexity70.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes17.14%
Methods57
▷ Static methods2747.37%
▷ Public methods5392.98%
▷ Protected methods00.00%
▷ Private methods47.02%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
26 PNG files occupy 0.16MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/img/preview/Display Slider Post Title.png5.41KB2.99KB▼ 44.68%
admin/assets/img/preview/Slider Width.png5.64KB2.84KB▼ 49.74%
admin/assets/img/preview/Show Thumbnail.png7.96KB3.91KB▼ 50.93%
admin/assets/img/preview/Show Navigation Arrow.png8.65KB4.18KB▼ 51.68%
admin/assets/img/preview/Display Slide Description.png3.62KB1.42KB▼ 60.73%