73% content-gallery-slider

Code Review | Content Gallery Slider

WordPress plugin Content Gallery Slider scored73%from 54 tests.

About plugin

  • Plugin page: content-gallery-s...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.4
  • WordPress version: 6.3.1
  • First release: Mar 8, 2016
  • Latest release: Mar 8, 2016
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: module.express (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,203 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼4.63ms] Passed 4 tests

Server-side resources used by Content Gallery Slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0938.15 ▲1.23
Dashboard /wp-admin3.38 ▲0.0842.81 ▼0.58
Posts /wp-admin/edit.php3.43 ▲0.0844.65 ▼3.60
Add New Post /wp-admin/post-new.php5.97 ▲0.0887.81 ▼15.58
Media Library /wp-admin/upload.php3.30 ▲0.0835.44 ▲3.03
Add New /wp-admin/post-new.php?post_type=sp_fcgs3.4348.13
All Images /wp-admin/edit.php?post_type=sp_fcgs3.3536.32
Gallery showcases /wp-admin/edit.php?post_type=sp_fcgs&page=responsive_gallery-fcgs-bar-submenu-page3.2729.01
Gallery Category /wp-admin/edit-tags.php?taxonomy=responsive_fcgs_slider-category&post_type=sp_fcgs3.3034.12

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Content Gallery Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,919 ▲15813.65 ▼0.789.12 ▲7.6241.03 ▲0.33
Dashboard /wp-admin2,233 ▲535.66 ▲0.0484.21 ▼0.9637.69 ▼2.98
Posts /wp-admin/edit.php2,135 ▲321.98 ▼0.0135.50 ▼11.5634.48 ▼7.23
Add New Post /wp-admin/post-new.php1,568 ▲4218.45 ▼4.83636.42 ▲30.2275.87 ▲25.10
Media Library /wp-admin/upload.php1,441 ▲474.26 ▲0.0993.66 ▼6.9743.94 ▲0.77
Add New /wp-admin/post-new.php?post_type=sp_fcgs2,3407.73164.4764.62
All Images /wp-admin/edit.php?post_type=sp_fcgs1,1161.9731.1736.22
Gallery showcases /wp-admin/edit.php?post_type=sp_fcgs&page=responsive_gallery-fcgs-bar-submenu-page8341.9923.6728.63
Gallery Category /wp-admin/edit-tags.php?taxonomy=responsive_fcgs_slider-category&post_type=sp_fcgs1,2922.1231.1731.66

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

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

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=sp_fcgs&page=responsive_gallery-fcgs-bar-submenu-page
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/content-gallery-slider/designs/template.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/content-gallery-slider/fcgs_gallery_admin_settings_center.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/content-gallery-slider/content-gallery-slider.php:342

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
    • > GET request to /wp-admin/edit.php?post_type=sp_fcgs&page=responsive_gallery-fcgs-bar-submenu-page
    • > Network (severe)
    wp-content/plugins/content-gallery-slider/images/design-1.jpg - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Designs Views from admin side), #2 (Catagroies shortcode)
The official readme.txt might help

content-gallery-slider/content-gallery-slider.php Passed 13 tests

The main file in "Content Gallery Slider" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
42 characters long description:
A simple Responsive Content Gallery Slider

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
There were no executable files found in this plugin4,681 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript12513863,742
CSS32453638
PHP36325301

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity2.92
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon_total_01.png24.31KB9.78KB▼ 59.76%
images/arrowLeftRight.png2.34KB0.72KB▼ 69.14%
images/box4T-bg.png1.03KB0.12KB▼ 88.05%