78% unlimited-logo-carousel

Code Review | Unlimited Logo Carousel

WordPress plugin Unlimited Logo Carousel scored78%from 54 tests.

About plugin

  • Plugin page: unlimited-logo-ca...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.2.5
  • WordPress version: 6.3.1
  • First release: Nov 13, 2016
  • Latest release: Oct 15, 2019
  • Number of updates: 33
  • Update frequency: every 32.1 days
  • Top authors: proscriptsell (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

1,000+ active /20,360 total downloads

Benchmarks

Plugin footprint 83% from 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.19MB] [CPU: ▼1.82ms] Passed 4 tests

A check of server-side resources used by Unlimited Logo Carousel
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1938.18 ▼1.18
Dashboard /wp-admin3.52 ▲0.1849.60 ▼8.24
Posts /wp-admin/edit.php3.63 ▲0.2756.34 ▲9.20
Add New Post /wp-admin/post-new.php6.10 ▲0.2182.53 ▲0.36
Media Library /wp-admin/upload.php3.42 ▲0.1936.17 ▲1.77
Add New Carousel /wp-admin/post-new.php?post_type=ed_logo3.4946.09
Global Settings /wp-admin/edit.php?post_type=ed_logo&page=settings3.4236.23
All Carousel /wp-admin/edit.php?post_type=ed_logo3.4938.64

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
ed_logo_carousel_options

Browser metrics Passed 4 tests

An overview of browser requirements for Unlimited Logo Carousel
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,152 ▲40616.18 ▲1.935.28 ▲3.2238.30 ▼7.24
Dashboard /wp-admin2,440 ▲2526.89 ▲0.99140.46 ▲36.6740.69 ▲0.98
Posts /wp-admin/edit.php2,349 ▲2603.40 ▲1.3657.98 ▲18.1033.93 ▼1.58
Add New Post /wp-admin/post-new.php1,564 ▲2217.73 ▼0.60658.05 ▲46.4336.43 ▼16.09
Media Library /wp-admin/upload.php1,479 ▲884.58 ▲0.2491.60 ▼7.8340.39 ▼4.50
Add New Carousel /wp-admin/post-new.php?post_type=ed_logo3,6625.08141.0459.42
Global Settings /wp-admin/edit.php?post_type=ed_logo&page=settings2,9174.11103.4931.25
All Carousel /wp-admin/edit.php?post_type=ed_logo1,3333.7645.1626.67

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • ed_logo_carousel_options
    • widget_theysaidso_widget
    • widget_recent-posts

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/unlimited-logo-carousel/inc/logo-metabox.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/unlimited-logo-carousel/inc/unlimited-logo-carousel.php:56
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/unlimited-logo-carousel/inc/options.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/unlimited-logo-carousel/inc/views.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/unlimited-logo-carousel/inc/meta-settings.php:17

User-side errors 0% from 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (Add New & Settings Page), #2 (Global Settings Page), #3 (Demo)
  • Tags: There are too many tags (18 tag instead of maximum 10)
You can look at the official readme.txt

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

The principal PHP file in "Unlimited Logo Carousel" v. 1.3 is loaded by WordPress automatically on each request
137 characters long description:
Unlimited Logo Carousel allows you to easily create logo carousel/slider to display logos of clients, partners, sponsors, affiliates etc.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected2,592 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2237141,378
PHP818598946
CSS2238235
SVG10133

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.44
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.87MB with 0.39MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png193.68KB85.04KB▼ 56.09%
assets/grabbing.png0.11KB0.14KB0.00%
screenshot-2.png51.86KB28.21KB▼ 45.61%
screenshot-3.png643.44KB151.59KB▼ 76.44%