73% circle-image-slider-with-lightbox

Code Review | Team Circle Image Slider With Lightbox

WordPress plugin Team Circle Image Slider With Lightbox scored73%from 54 tests.

About plugin

  • Plugin page: circle-image-slid...
  • Plugin version: 1.0.19
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.3
  • WordPress version: 6.3.1
  • First release: Jul 25, 2015
  • Latest release: Sep 20, 2023
  • Number of updates: 51
  • Update frequency: every 58.4 days
  • Top authors: nik00726 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

600+ active /22,972 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.42MB] [CPU: ▼5.13ms] Passed 4 tests

A check of server-side resources used by Team Circle Image Slider With Lightbox
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.88 ▲0.4246.09 ▲6.25
Dashboard /wp-admin3.73 ▲0.4351.89 ▼3.93
Posts /wp-admin/edit.php3.84 ▲0.4955.83 ▼16.35
Add New Post /wp-admin/post-new.php6.31 ▲0.4399.23 ▼4.19
Media Library /wp-admin/upload.php3.65 ▲0.4243.06 ▲3.97
Manage Images /wp-admin/admin.php?page=circle_thumbnail_slider_with_lightbox_image_management3.6545.97
Preview Slider /wp-admin/admin.php?page=circle_thumbnail_slider_with_lightbox_preview3.6641.35
Slider Settings /wp-admin/admin.php?page=circle_thumbnail_slider_with_lightbox3.6542.16

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: 1 new table, 8 new options
New tables
wp_circle_image_carousel
New WordPress options
widget_recent-posts
can_compress_scripts
circle_thumbnail_slider_plus_lightbox_settings
circle_image_carousel
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Team Circle Image Slider With Lightbox
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8514.79 ▲0.411.84 ▲0.2741.06 ▼5.14
Dashboard /wp-admin2,237 ▲495.85 ▼0.05108.62 ▼4.1742.32 ▼0.99
Posts /wp-admin/edit.php2,117 ▲281.98 ▼0.0839.84 ▼0.8931.57 ▼1.68
Add New Post /wp-admin/post-new.php1,558 ▲3923.22 ▲0.17650.82 ▼51.2063.70 ▼4.33
Media Library /wp-admin/upload.php1,422 ▲344.19 ▼0.0397.83 ▼17.4841.55 ▼7.23
Manage Images /wp-admin/admin.php?page=circle_thumbnail_slider_with_lightbox_image_management1,3434.56100.5375.69
Preview Slider /wp-admin/admin.php?page=circle_thumbnail_slider_with_lightbox_preview1,1523.7450.1228.56
Slider Settings /wp-admin/admin.php?page=circle_thumbnail_slider_with_lightbox1,7385.0598.5377.36

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_circle_image_carousel
  • The uninstall procedure has failed, leaving 8 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • circle_thumbnail_slider_plus_lightbox_settings
    • circle_image_carousel

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/circle-image-slider-with-lightbox/circle-image-slider-with-lightbox.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Screenshot #11 (Pro version add/edit featured image to slider.) image required
  • Screenshots: A description for screenshot #9 is required in circle-image-slider-with-lightbox/assets to your readme.txt
You can look at the official readme.txt

circle-image-slider-with-lightbox/circle-image-slider-with-lightbox.php 92% from 13 tests

The main PHP file in "Team Circle Image Slider With Lightbox" ver. 1.0.19 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 155 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin6,337 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript46337543,231
PHP1880762,452
CSS412468654

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions22
▷ Named functions2195.45%
▷ Anonymous functions14.55%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
16 compressed PNG files occupy 0.13MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/controls_fnc.png1.33KB1.42KB0.00%
images/prev.png1.33KB1.59KB0.00%
images/vl-box/player_play.png1.40KB1.36KB▼ 3.20%
images/vl-box/playico.png1.35KB1.32KB▼ 2.10%
images/wpforms-336x280v1.png24.48KB9.58KB▼ 60.85%