79% simple-logo-carousel

Code Review | Simple Logo Carousel

WordPress plugin Simple Logo Carousel scored79%from 54 tests.

About plugin

  • Plugin page: simple-logo-carousel
  • Plugin version: 1.9.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Dec 30, 2018
  • Latest release: Oct 6, 2022
  • Number of updates: 48
  • Update frequency: every 28.7 days
  • Top authors: tvledesign (56.25%)productivelaziness (45.83%)

Code review

54 tests

User reviews

3 reviews

Install metrics

90+ active /1,972 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.47MB] [CPU: ▼1.81ms] Passed 4 tests

Analyzing server-side resources used by Simple Logo Carousel
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.96 ▲0.5037.48 ▼6.02
Dashboard /wp-admin3.82 ▲0.5149.71 ▼1.35
Posts /wp-admin/edit.php3.86 ▲0.5048.77 ▲1.32
Add New Post /wp-admin/post-new.php6.35 ▲0.4598.33 ▲2.52
Media Library /wp-admin/upload.php3.67 ▲0.4434.71 ▼1.19
Settings /wp-admin/edit.php?post_type=slc_carousel&page=settings3.8833.75
Add Logo /wp-admin/post-new.php?post_type=slc_logo3.7653.17

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 46 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
slc_initial_carousel_options
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Simple Logo Carousel
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,865 ▲13014.47 ▲0.181.87 ▲0.0437.53 ▼6.51
Dashboard /wp-admin2,249 ▲615.88 ▲0.9799.04 ▼16.0440.41 ▼8.92
Posts /wp-admin/edit.php2,129 ▲402.01 ▼0.0440.63 ▲5.0135.86 ▲0.14
Add New Post /wp-admin/post-new.php1,568 ▲4922.79 ▼0.36592.69 ▼63.3053.13 ▼6.01
Media Library /wp-admin/upload.php1,428 ▲434.14 ▼0.1098.73 ▼8.2946.08 ▲1.48
Settings /wp-admin/edit.php?post_type=slc_carousel&page=settings2,0672.6560.3930.63
Add Logo /wp-admin/post-new.php?post_type=slc_logo1,8813.5569.5033.33

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/simple-logo-carousel/simple-logo-carousel.php
  • 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'PLSimpleLogoCarousel\\Base\\BaseController' not found in wp-content/plugins/simple-logo-carousel/includes/Pages/Settings.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_terms() in wp-content/plugins/simple-logo-carousel/templates/admin/carousel-preview-metabox.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-logo-carousel/templates/admin/settings.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/simple-logo-carousel/templates/admin/carousel-logo-display-options-metabox.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/simple-logo-carousel/templates/admin/carousel-logo-display-order-metabox.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/simple-logo-carousel/templates/admin/carousel-options-metabox.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'PLSimpleLogoCarousel\\Base\\BaseController' not found in wp-content/plugins/simple-logo-carousel/includes/Pages/Logo.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/simple-logo-carousel/templates/admin/carousel-shortcode-metabox.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/simple-logo-carousel/templates/admin/carousel-how-to-metabox.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/simple-logo-carousel/templates/admin/logo-metabox.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: logo slider, logo carousel, carousel, slider

simple-logo-carousel/simple-logo-carousel.php Passed 13 tests

The main file in "Simple Logo Carousel" v. 1.9.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
67 characters long description:
A simplistic carousel to elegantly display logos. Powered by slick.

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
There were no executable files found in this plugin3,766 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
PHP293396373,188
CSS5795390
JavaScript43339159
JSON20018
SVG20111

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.33
Average class complexity12.07
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity3.34
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes16.67%
Methods72
▷ Static methods1115.28%
▷ Public methods7097.22%
▷ Protected methods00.00%
▷ Private methods22.78%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin