84% image-3d-carousel

Code Review | Image 3D Carousel

WordPress plugin Image 3D Carousel scored 84% from 54 tests.

About plugin

  • Plugin page: image-3d-carousel
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.0.2
  • WordPress version: 6.3.1
  • First release: Jan 8, 2019
  • Latest release: Jan 10, 2019
  • Number of updates: 22
  • Update frequency: every 0.1 days
  • Top authors: nriddhi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 852 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
Installer ran successfully

Server metrics [RAM: ▲0.66MB] [CPU: ▲0.15ms] Passed 4 tests

A check of server-side resources used by Image 3D Carousel
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.08 ▲0.6246.34 ▼3.84
Dashboard /wp-admin3.99 ▲0.6958.77 ▲6.94
Posts /wp-admin/edit.php4.01 ▲0.6653.53 ▲5.59
Add New Post /wp-admin/post-new.php6.71 ▲0.8391.86 ▼8.09
Media Library /wp-admin/upload.php3.91 ▲0.6841.52 ▲9.62
Add New /wp-admin/post-new.php?post_type=image_3d_cl4.3955.66
All Carousel Images /wp-admin/edit.php?post_type=image_3d_cl3.9641.22

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 129 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Image 3D Carousel
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,934 ▲19913.92 ▼0.685.69 ▲3.8741.74 ▲0.49
Dashboard /wp-admin2,247 ▲595.00 ▼0.88111.30 ▼1.2540.98 ▼6.67
Posts /wp-admin/edit.php2,133 ▲442.26 ▲0.2740.65 ▲1.1935.09 ▲2.38
Add New Post /wp-admin/post-new.php1,550 ▲1223.42 ▲5.14664.60 ▲42.9049.72 ▲0.93
Media Library /wp-admin/upload.php1,432 ▲474.30 ▲0.08108.10 ▲4.5343.67 ▼2.54
Add New /wp-admin/post-new.php?post_type=image_3d_cl1,8944.1080.1248.10
All Carousel Images /wp-admin/edit.php?post_type=image_3d_cl1,1052.1934.2728.44

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 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 50% 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 fix the following items
  • 43× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/image-3d-carousel/library/metabox/includes/CMB2_Field.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/image-3d-carousel/library/metabox/includes/types/CMB2_Type_File_List.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/image-3d-carousel/library/metabox/includes/types/CMB2_Type_Taxonomy_Multicheck.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/image-3d-carousel/functions.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/image-3d-carousel/library/metabox/includes/types/CMB2_Type_File_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_hookup' not found in wp-content/plugins/image-3d-carousel/library/metabox/includes/CMB2_Options_Hookup.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/image-3d-carousel/library/metabox/includes/types/CMB2_Type_Taxonomy_Radio.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/image-3d-carousel/library/metabox/includes/types/CMB2_Type_Select.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/image-3d-carousel/library/metabox/includes/types/CMB2_Type_Title.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/image-3d-carousel/library/metabox/includes/types/CMB2_Type_Checkbox.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 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
8 plugin tags: responsive image gallery, carousel shortcode, jquery 3d image, simple image gallery, image showcase...

image-3d-carousel/plugin.php 92% from 13 tests

The principal PHP file in "Image 3D Carousel" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("image-3d-carousel.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin15,175 lines of code in 105 files:
LanguageFilesBlank linesComment linesLines of code
PHP642,3436,3757,362
CSS141,2091,1544,872
JavaScript93585471,478
Sass16300251,379
Markdown130067
JSON10017

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity19.12
▷ Minimum class complexity1.00
▷ Maximum class complexity182.00
Average method complexity3.24
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes69
▷ Abstract classes811.59%
▷ Concrete classes6188.41%
▷ Final classes00.00%
Methods555
▷ Static methods8715.68%
▷ Public methods45081.08%
▷ Protected methods8815.86%
▷ Private methods173.06%
Functions47
▷ Named functions3574.47%
▷ Anonymous functions1225.53%
Constants9
▷ Global constants333.33%
▷ Class constants666.67%
▷ Public constants6100.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
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
library/metabox/images/ui-bg_flat_75_ffffff_40x100.png0.17KB0.08KB▼ 51.12%
library/metabox/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
library/metabox/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%
library/metabox/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%
library/metabox/images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%