78% rt-wp-logo-slider

Code Review | Logo Slider

WordPress plugin Logo Slider scored78%from 54 tests.

About plugin

  • Plugin page: rt-wp-logo-slider
  • Plugin version: 1.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.3
  • WordPress version: 6.3.1
  • First release: Sep 22, 2017
  • Latest release: Sep 8, 2023
  • Number of updates: 15
  • Update frequency: every 147.4 days
  • Top authors: techlabpro1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /1,756 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.16MB] [CPU: ▼2.14ms] Passed 4 tests

This is a short check of server-side resources used by Logo Slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2038.30 ▼4.54
Dashboard /wp-admin3.49 ▲0.1944.49 ▼3.68
Posts /wp-admin/edit.php3.54 ▲0.1848.82 ▲5.33
Add New Post /wp-admin/post-new.php6.02 ▲0.1394.11 ▼0.05
Media Library /wp-admin/upload.php3.34 ▲0.1235.06 ▼0.27
Settings /wp-admin/edit.php?post_type=wpl_sp&page=wls_settings3.3531.44
Categories /wp-admin/edit-tags.php?taxonomy=wpl_sp_category&post_type=wpl_sp3.3432.73
Shortcode Generator /wp-admin/edit.php?post_type=wpl_spsc3.4537.84
Add New Logo /wp-admin/post-new.php?post_type=wpl_sp3.5048.89
All Logos /wp-admin/edit.php?post_type=wpl_sp3.4535.96

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 67 new files
Database: no new tables, 9 new options
New WordPress options
can_compress_scripts
wpl_sp_settings
db_upgraded
theysaidso_admin_options
widget_widget_rt_wls
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
wpl_sp_current_version

Browser metrics Passed 4 tests

Logo Slider: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,851 ▲9413.18 ▼1.251.67 ▼0.5340.00 ▼4.05
Dashboard /wp-admin2,252 ▲645.84 ▲0.9199.03 ▼16.5774.79 ▲29.13
Posts /wp-admin/edit.php2,132 ▲431.99 ▼0.0339.56 ▲5.6937.57 ▼1.77
Add New Post /wp-admin/post-new.php6,451 ▲4,93120.98 ▼2.18933.65 ▲262.1468.01 ▲14.41
Media Library /wp-admin/upload.php1,434 ▲464.27 ▲0.0597.30 ▲2.1169.22 ▲24.64
Settings /wp-admin/edit.php?post_type=wpl_sp&page=wls_settings1,1222.7949.9431.91
Categories /wp-admin/edit-tags.php?taxonomy=wpl_sp_category&post_type=wpl_sp1,3052.1427.8730.46
Shortcode Generator /wp-admin/edit.php?post_type=wpl_spsc1,1522.5940.1848.07
Add New Logo /wp-admin/post-new.php?post_type=wpl_sp1,9374.4871.2592.21
All Logos /wp-admin/edit.php?post_type=wpl_sp1,1832.8137.4532.72

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 9 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • wpl_sp_settings
    • widget_theysaidso_widget
    • wpl_sp_current_version
    • widget_widget_rt_wls
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 16× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Notice
      Undefined variable: linkType in wp-content/plugins/rt-wp-logo-slider/lib/views/layouts/carousel-layout1.php on line 9
    • > PHP Notice
      Undefined variable: title in wp-content/plugins/rt-wp-logo-slider/lib/views/layouts/carousel-layout1.php on line 11
    • > PHP Warning
      Use of undefined constant WPL_SP_PLUGIN_URL - assumed 'WPL_SP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/rt-wp-logo-slider/lib/init.php on line 41
    • > PHP Notice
      Undefined variable: linkType in wp-content/plugins/rt-wp-logo-slider/lib/views/layouts/grid-layout1.php on line 5
    • > PHP Notice
      Undefined variable: url in wp-content/plugins/rt-wp-logo-slider/lib/views/layouts/carousel-layout1.php on line 10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/rt-wp-logo-slider/lib/views/layouts/grid-layout1.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/rt-wp-logo-slider/lib/views/layouts/carousel-layout1.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/rt-wp-logo-slider/lib/views/settings.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/rt-wp-logo-slider/lib/widgets/rtWLSWidget.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/rt-wp-logo-slider/lib/vendor/rtWLSElementorWidget.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=wpl_sp
    • > Javascript (severe) in unknown
    /wp-content/plugins/rt-wp-logo-slider/assets/js/wls-admin.js?ver=1.0 270:19 Uncaught TypeError: Cannot read properties of undefined (reading 'msie')

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Donate link: Please fix this invalid URI: ""
You can look at the official readme.txt

rt-wp-logo-slider/rt-wp-logo-slider.php 92% from 13 tests

"Logo Slider" version 1.1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 154 characters long)

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 plugin11,418 lines of code in 51 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript152,0863,3618,043
PHP223815592,258
CSS11117811,027
Markdown137069
SVG11013
XML1008

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity20.63
▷ Minimum class complexity1.00
▷ Maximum class complexity81.00
Average method complexity4.03
▷ Minimum method complexity1.00
▷ Maximum method complexity73.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes19
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes00.00%
Methods123
▷ Static methods21.63%
▷ Public methods10988.62%
▷ Protected methods21.63%
▷ Private methods129.76%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/icon-vc.png1.09KB0.18KB▼ 83.87%
assets/images/menu-icon.png1.00KB0.14KB▼ 86.16%
assets/images/grabbing.png0.11KB0.14KB0.00%
assets/images/icon-scg.png1.00KB0.14KB▼ 86.39%
assets/vendor/owl-carousel2/assets/owl.video.play.png4.86KB2.74KB▼ 43.61%