89% logo-slider

Code Review | Logo Slider

WordPress plugin Logo Slider scored 89% from 54 tests.

About plugin

  • Plugin page: logo-slider
  • Plugin version: 1.4.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.9.5
  • WordPress version: 5.9.2
  • First release: Mar 12, 2013
  • Latest release: Apr 16, 2018
  • Number of updates: 38
  • Update frequency: every 49.0 days
  • Top authors: EnigmaWeb (100%)

Code review

54 tests

User reviews

61 reviews

Install metrics

7,000+ active / 224,165 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼289.05ms] Passed 4 tests

A check of server-side resources used by Logo Slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0257.62 ▲9.02
Dashboard /wp-admin3.46 ▲0.0642.12 ▲7.79
Posts /wp-admin/edit.php3.69 ▲0.0545.32 ▲7.06
Add New Post /wp-admin/post-new.php6.90 ▼0.06104.61 ▼1,175.11
Media Library /wp-admin/upload.php3.31 ▲0.0227.54 ▲4.08
/wp-admin/admin.php?page=manage_images3.3827.54
Manage Sliders /wp-admin/admin.php?page=manage_sliders3.4130.16
Settings /wp-admin/admin.php?page=ls_settings3.4131.05

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 75 new files
Database: 2 new tables, 2 new options
New tables
wp_lsp_sliders
wp_lsp_images
New WordPress options
lsp_table_images_version
lsp_table_sliders_version

Browser metrics Passed 4 tests

Logo Slider: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,167 ▲41318.38 ▲2.6012.02 ▲5.812.03 ▼0.73
Dashboard /wp-admin3,150 ▲2898.29 ▲2.08140.04 ▲6.12175.22 ▲8.91
Posts /wp-admin/edit.php2,992 ▲3045.09 ▲1.8680.17 ▲16.96155.77 ▲14.55
Add New Post /wp-admin/post-new.php1,710 ▲4916.44 ▼0.00402.06 ▼14.71171.39 ▲19.17
Media Library /wp-admin/upload.php1,778 ▲836.01 ▲0.51111.74 ▼27.14187.72 ▲2.70
/wp-admin/admin.php?page=manage_images1,4674.8973.16156.30
Manage Sliders /wp-admin/admin.php?page=manage_sliders1,3984.7867.50134.38
Settings /wp-admin/admin.php?page=ls_settings2,0425.2186.48156.23

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=manage_images
    • > Notice in wp-content/plugins/logo-slider/ls_manage_images.php+11
    Undefined index: lsp_slider_id

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
Almost there! Just fix the following items
  • 9× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Warning
      include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/logo-slider/logo-slider.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/logo-slider/ls_logoslider.php:136
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/logo-slider/ls_manage_images.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/logo-slider/ls_manage_sliders.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/logo-slider/includes/ls_database.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/logo-slider/logo-slider.php:16
    • > PHP Warning
      include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/logo-slider/logo-slider.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/logo-slider/ls_settings.php:7
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/logo-slider/logo-slider.php on line 14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: logo slide show, logo showcase, logo slideshow, logo slide, sponsors...

logo-slider/logo-slider.php Passed 13 tests

The main PHP file in "Logo Slider" ver. 1.4.8 adds more information about the plugin and also serves as the entry point for this plugin
62 characters long description:
Add a logo slideshow carousel to your site quickly and easily.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin5,237 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript115032792,805
PHP8265551,977
CSS131455

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants26
▷ Global constants26100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
50 PNG files occupy 0.14MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
ls_arrows/lsp_arrow1_prev.png2.47KB1.39KB▼ 43.72%
arrows/arrow5-up.png3.68KB0.75KB▼ 79.48%
includes/images/icon_view.png3.88KB1.29KB▼ 66.83%
ls_arrows/lsp_arrow6_next.png2.90KB1.40KB▼ 51.57%
ls_arrows/lsp_arrow2_prev.png2.75KB1.21KB▼ 55.90%