84% cc-roundabout-3d-slider

Code Review | CC Roundabout 3D Slider

WordPress plugin CC Roundabout 3D Slider scored84%from 54 tests.

About plugin

  • Plugin page: cc-roundabout-3d-...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4.2
  • WordPress version: 6.3.1
  • First release: Dec 5, 2014
  • Latest release: Feb 15, 2016
  • Number of updates: 39
  • Update frequency: every 11.2 days
  • Top authors: srmahmud2 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /2,832 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼0.61ms] Passed 4 tests

An overview of server-side resources used by CC Roundabout 3D Slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0340.08 ▲1.57
Dashboard /wp-admin3.33 ▲0.0348.09 ▼1.85
Posts /wp-admin/edit.php3.38 ▲0.0243.94 ▼0.29
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.47 ▼1.88
Media Library /wp-admin/upload.php3.25 ▲0.0235.18 ▲3.16
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=slide3.2533.08
All Slides /wp-admin/edit.php?post_type=slide3.3037.44
Add New /wp-admin/post-new.php?post_type=slide3.4256.45
Settings /wp-admin/edit.php?post_type=slide&page=ccrwp-options3.2231.44
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=slide3.2435.25

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

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

Browser metrics Passed 4 tests

Checking browser requirements for CC Roundabout 3D Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲6014.22 ▼0.301.82 ▼0.1644.52 ▼15.49
Dashboard /wp-admin2,234 ▲575.62 ▲0.0285.15 ▼17.8139.24 ▼6.23
Posts /wp-admin/edit.php2,139 ▲392.03 ▲0.0136.71 ▲3.0636.12 ▼0.47
Add New Post /wp-admin/post-new.php1,558 ▲3220.82 ▼2.41641.88 ▼23.0857.25 ▲6.61
Media Library /wp-admin/upload.php1,436 ▲364.18 ▼0.0596.95 ▼9.7444.94 ▼3.20
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=slide1,3612.1226.8331.30
All Slides /wp-admin/edit.php?post_type=slide1,1921.9830.0641.43
Add New /wp-admin/post-new.php?post_type=slide2,7767.92170.8167.08
Settings /wp-admin/edit.php?post_type=slide&page=ccrwp-options8521.9923.9725.18
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=slide1,4912.1327.2131.73

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • category_children
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
  • 5× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_theme_support() in wp-content/plugins/cc-roundabout-3d-slider/includes/data-process.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cc-roundabout-3d-slider/includes/script.php:27
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cc-roundabout-3d-slider/includes/admin-settings.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/cc-roundabout-3d-slider/includes/ccrwp_shorts.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cc-roundabout-3d-slider/includes/script.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% 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
6 plugin tags: 3d slider, slideshow, 3d testimonial slider, 3d product slider, roundabout...

cc-roundabout-3d-slider/cc-roundabout-slider.php 85% from 13 tests

This is the main PHP file of "CC Roundabout 3D Slider" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 187 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("cc-roundabout-3d-slider.php" instead of "cc-roundabout-slider.php")

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
No dangerous file extensions were detected1,693 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript62534901,566
PHP5149126
CSS1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.04
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
8 PNG files occupy 0.24MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-6.png39.37KB15.39KB▼ 60.90%
assets/screenshot-2.png33.96KB14.39KB▼ 57.62%
assets/screenshot-3.png13.84KB6.49KB▼ 53.08%
assets/screenshot-4.png72.43KB36.63KB▼ 49.43%
assets/screenshot-5.png34.55KB15.52KB▼ 55.07%