78% tc-logo-slider

Code Review | Logo Slider Carousel

WordPress plugin Logo Slider Carousel scored78%from 54 tests.

About plugin

  • Plugin page: tc-logo-slider
  • Plugin version: 1.8
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 3, 2015
  • Latest release: May 15, 2020
  • Number of updates: 93
  • Update frequency: every 17.5 days
  • Top authors: imranemu (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

2,000+ active /38,919 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.28MB] [CPU: ▼2.40ms] Passed 4 tests

This is a short check of server-side resources used by Logo Slider Carousel
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2242.99 ▲3.08
Dashboard /wp-admin3.67 ▲0.3751.01 ▲1.94
Posts /wp-admin/edit.php3.72 ▲0.3654.07 ▲8.86
Add New Post /wp-admin/post-new.php6.17 ▲0.2885.21 ▼12.45
Media Library /wp-admin/upload.php3.50 ▲0.2734.78 ▼2.18
Add New Logo /wp-admin/post-new.php?post_type=tclogoslider3.6147.84
Help & Upgrade /wp-admin/edit.php?post_type=tclogoslider&page=tc_tclogoslider_menu_help3.5037.47
All Logos /wp-admin/edit.php?post_type=tclogoslider3.5749.88
Categories /wp-admin/edit-tags.php?taxonomy=tclogo_category&post_type=tclogoslider3.5234.54
Logo Settings /wp-admin/edit.php?post_type=tclogoslider&page=logo-settings3.5038.67

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 9 new options
New WordPress options
tc-logo-slider_others
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
tcls_advanced
widget_recent-comments
widget_recent-posts
tcls_basics

Browser metrics Passed 4 tests

Logo Slider Carousel: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,118 ▲37215.82 ▲1.175.96 ▲4.1838.65 ▼6.48
Dashboard /wp-admin2,398 ▲2106.64 ▲0.70134.28 ▲28.3642.09 ▲3.03
Posts /wp-admin/edit.php2,310 ▲2243.64 ▲1.6057.69 ▲21.8436.15 ▲3.44
Add New Post /wp-admin/post-new.php1,560 ▲4017.90 ▼5.20663.16 ▲65.5943.17 ▲3.06
Media Library /wp-admin/upload.php1,443 ▲584.33 ▲0.0586.52 ▼15.4043.95 ▼2.82
Add New Logo /wp-admin/post-new.php?post_type=tclogoslider2,1333.9867.9940.35
Help & Upgrade /wp-admin/edit.php?post_type=tclogoslider&page=tc_tclogoslider_menu_help1,72610.20278.6072.56
All Logos /wp-admin/edit.php?post_type=tclogoslider1,3153.4948.6728.95
Categories /wp-admin/edit-tags.php?taxonomy=tclogo_category&post_type=tclogoslider1,4803.3541.2425.20
Logo Settings /wp-admin/edit.php?post_type=tclogoslider&page=logo-settings1,9584.0875.1829.18

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 9 options
    • tcls_advanced
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • tc-logo-slider_others
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • tcls_basics

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/tc-logo-slider/lib/tc-logoslider-help-upgrade.php
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tc-logo-slider/public/tc-logo-view.php:93
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tc-logo-slider/lib/tc-logo-metabox.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/tc-logo-slider/lib/tc-logo-column.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tc-logo-slider/lib/tc-logo-cpt.php:37
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tc-logo-slider/lib/settings/class.settings-api.php:21

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
  • Requires at least: Version format is invalid
The official readme.txt is a good inspiration

tc-logo-slider/tc-logo-slider.php 92% from 13 tests

The main file in "Logo Slider Carousel" v. 1.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 153 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected3,467 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript24508571,764
PHP103223121,198
CSS43441435
Markdown138070

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity21.75
▷ Minimum class complexity1.00
▷ Maximum class complexity49.00
Average method complexity3.02
▷ Minimum method complexity1.00
▷ Maximum method complexity30.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods41
▷ Static methods12.44%
▷ Public methods3995.12%
▷ Protected methods00.00%
▷ Private methods24.88%
Functions25
▷ Named functions25100.00%
▷ Anonymous functions00.00%
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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
vendors/owl-carousel-2/assets/owl.video.play.png4.86KB2.74KB▼ 43.61%