84% responsive-logo-carousel

Code Review | Responsive Logo Carousel

WordPress plugin Responsive Logo Carousel scored84%from 54 tests.

About plugin

  • Plugin page: responsive-logo-c...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.9.7
  • WordPress version: 6.3.1
  • First release: Oct 13, 2016
  • Latest release: Oct 22, 2018
  • Number of updates: 23
  • Update frequency: every 32.2 days
  • Top authors: dennokip (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,611 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.66ms] Passed 4 tests

Server-side resources used by Responsive Logo Carousel
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0835.69 ▼1.66
Dashboard /wp-admin3.36 ▲0.0643.30 ▼9.73
Posts /wp-admin/edit.php3.41 ▲0.0647.38 ▲0.23
Add New Post /wp-admin/post-new.php5.96 ▲0.0893.54 ▼3.48
Media Library /wp-admin/upload.php3.28 ▲0.0633.76 ▲0.70
All Logos /wp-admin/edit.php?post_type=lgs3.3334.40
Add New /wp-admin/post-new.php?post_type=lgs3.3648.24

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
rlc_carousel_orderby
widget_recent-comments
lgs_wordpress_gallery
theysaidso_admin_options

Browser metrics Passed 4 tests

Responsive Logo Carousel: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,928 ▲18213.66 ▼0.778.13 ▲6.2538.97 ▼8.22
Dashboard /wp-admin2,240 ▲554.91 ▼0.0297.74 ▼3.5377.12 ▲34.68
Posts /wp-admin/edit.php2,123 ▲342.06 ▲0.0937.10 ▼1.9133.37 ▼3.21
Add New Post /wp-admin/post-new.php1,553 ▲3918.17 ▲0.70678.92 ▼7.6661.32 ▼1.88
Media Library /wp-admin/upload.php1,425 ▲344.23 ▲0.03100.53 ▲1.1875.81 ▲30.76
Carousels /wp-admin/edit-tags.php?taxonomy=Logo Carousel&post_type=lgs1,2982.1726.4532.01
All Logos /wp-admin/edit.php?post_type=lgs1,1122.0238.0338.68
Add New /wp-admin/post-new.php?post_type=lgs1,7163.5963.1987.40

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_recent-posts
    • rlc_carousel_orderby
    • db_upgraded
    • lgs_wordpress_gallery
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% 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)
Even though no errors were found, 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
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-logo-carousel/responsive-logo-carousel.php:63

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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
Attributes that require attention:
  • Tags: You are using too many tags: 53 tag instead of maximum 10
The official readme.txt might help

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

The principal PHP file in "Responsive Logo Carousel" v. 1.0.0 is loaded by WordPress automatically on each request
114 characters long description:
A simple plugin to include a responsive carousel customized for logos in any post by using a simplified shortcode.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected1,740 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3214181,316
CSS23223281
PHP11514143

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/rl.png12.16KB6.96KB▼ 42.77%
images/rl1.png0.40KB0.43KB0.00%
images/owl-logo.png0.79KB0.84KB0.00%