77% ultimate-logo-slider

Code Review | Ultimate Logo Slider

WordPress plugin Ultimate Logo Slider scored77%from 54 tests.

About plugin

  • Plugin page: ultimate-logo-slider
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.0
  • WordPress version: 6.3.1
  • First release: Sep 20, 2017
  • Latest release: Dec 8, 2018
  • Number of updates: 9
  • Update frequency: every 49.3 days
  • Top authors: athemeart (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active /2,507 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.05MB] [CPU: ▲1.44ms] Passed 4 tests

Analyzing server-side resources used by Ultimate Logo Slider
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0440.61 ▼2.96
Dashboard /wp-admin3.37 ▲0.0655.00 ▲3.71
Posts /wp-admin/edit.php3.45 ▲0.0960.34 ▲6.72
Add New Post /wp-admin/post-new.php5.94 ▲0.0589.79 ▼1.73
Media Library /wp-admin/upload.php3.27 ▲0.0444.84 ▲7.02
Add New Slider /wp-admin/post-new.php?post_type=ata_logo3.3360.51
Global Settings /wp-admin/edit.php?post_type=ata_logo&page=settings3.2637.82
All Slider /wp-admin/edit.php?post_type=ata_logo3.3340.35

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
ata_logo_carousel_options
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Ultimate Logo Slider
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,104 ▲34315.31 ▲1.035.63 ▲3.6543.37 ▲0.22
Dashboard /wp-admin2,392 ▲2126.65 ▲1.04124.79 ▲33.4540.76 ▼3.49
Posts /wp-admin/edit.php2,317 ▲2143.46 ▲1.4456.61 ▲14.3934.52 ▼3.41
Add New Post /wp-admin/post-new.php1,576 ▲5023.77 ▲0.33684.06 ▲34.4536.40 ▼13.85
Media Library /wp-admin/upload.php1,457 ▲604.60 ▲0.36110.08 ▲2.8846.43 ▲1.74
Add New Slider /wp-admin/post-new.php?post_type=ata_logo3,6175.02119.7459.28
Global Settings /wp-admin/edit.php?post_type=ata_logo&page=settings2,8905.3697.2631.70
All Slider /wp-admin/edit.php?post_type=ata_logo1,3033.7343.6926.78

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 does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • ata_logo_carousel_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 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/ultimate-logo-slider/inc/options.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-logo-slider/inc/views.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-logo-slider/inc/meta-settings.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-logo-slider/inc/unlimited-logo-carousel.php:56
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ultimate-logo-slider/inc/logo-metabox.php:10

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
    • > GET request to /wp-admin/edit.php?post_type=ata_logo&page=settings
    • > Rendering (warning) in unknown
    /wp-admin/edit.php?post_type=ata_logo&page=settings 453 The specified value "#d5d5d5" cannot be parsed, or is out of range.

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Add New & Settings Page), #2 (Global Settings Page), #3 (Demo)
You can take inspiration from this readme.txt

ultimate-logo-slider/ultimate_logo_slider.php 92% from 13 tests

Analyzing the main PHP file in "Ultimate Logo Slider" version 1.0
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("ultimate-logo-slider.php" instead of "ultimate_logo_slider.php")

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 plugin2,563 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2236151,377
PHP918399951
CSS2238235

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods2
▷ Static methods2100.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions28
▷ Named functions28100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.87MB with 0.39MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png643.44KB151.59KB▼ 76.44%
assets/grabbing.png0.11KB0.14KB0.00%
assets/icon.png1.25KB0.68KB▼ 46.02%
screenshot-1.png193.68KB85.04KB▼ 56.09%
screenshot-2.png51.86KB28.21KB▼ 45.61%