83% wp-logo-slider-with-widget-responsive

Code Review | WP Logo Slider and Widget Responsive

WordPress plugin WP Logo Slider and Widget Responsive scored 83% from 54 tests.

About plugin

  • Plugin page: wp-logo-slider-wi...
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.4.2
  • WordPress version: 5.9.2
  • First release: Jul 26, 2018
  • Latest release: Oct 11, 2020
  • Number of updates: 56
  • Update frequency: every 14.6 days
  • Top authors: pareshpachani007 (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

600+ active / 3,926 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.36MB] [CPU: ▼306.66ms] Passed 4 tests

An overview of server-side resources used by WP Logo Slider and Widget Responsive
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.86 ▲0.3460.93 ▲0.83
Dashboard /wp-admin3.81 ▲0.4039.74 ▲2.82
Posts /wp-admin/edit.php4.04 ▲0.4048.62 ▲7.98
Add New Post /wp-admin/post-new.php7.28 ▲0.3099.34 ▼1,225.52
Media Library /wp-admin/upload.php3.70 ▲0.4029.48 ▼4.78
Help and use /wp-admin/edit.php?post_type=easy-logoslider&page=lswr-designs3.6747.67
All Logo Slider /wp-admin/edit.php?post_type=easy-logoslider3.8127.66
Add New /wp-admin/post-new.php?post_type=easy-logoslider4.0356.79
Logo Category /wp-admin/edit-tags.php?taxonomy=easy_logo_cat&post_type=easy-logoslider3.7052.10

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 1 new option
New WordPress options
widget_logo-slider

Browser metrics Passed 4 tests

WP Logo Slider and Widget Responsive: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,977 ▲21916.41 ▲0.549.49 ▲2.282.60 ▼0.31
Dashboard /wp-admin2,943 ▲926.16 ▼0.01118.91 ▼66.68151.65 ▼27.17
Posts /wp-admin/edit.php2,745 ▲543.37 ▲0.1265.43 ▲2.81140.47 ▼52.25
Add New Post /wp-admin/post-new.php1,696 ▼2317.51 ▼4.84390.02 ▼66.65167.14 ▼16.61
Media Library /wp-admin/upload.php1,755 ▲545.58 ▲0.02145.28 ▲8.07189.32 ▲2.04
Help and use /wp-admin/edit.php?post_type=easy-logoslider&page=lswr-designs1,2782.7481.47112.92
All Logo Slider /wp-admin/edit.php?post_type=easy-logoslider1,4603.1861.21168.89
Add New /wp-admin/post-new.php?post_type=easy-logoslider3,01710.15200.77285.02
Logo Category /wp-admin/edit-tags.php?taxonomy=easy_logo_cat&post_type=easy-logoslider1,6712.7955.88111.65

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 1 option
    • widget_logo-slider

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/wp-logo-slider-with-widget-responsive/wp-logo-slider-and-widget-responsive.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 86% 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: Too many tags (48 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

wp-logo-slider-with-widget-responsive/wp-logo-slider-and-widget-responsive.php 77% from 13 tests

The entry point to "WP Logo Slider and Widget Responsive" version 1.5 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-logo-slider-with-widget-responsive.php" instead of "wp-logo-slider-and-widget-responsive.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 190 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected3,670 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP13393551,966
JavaScript552300898
SVG100685
CSS4031121

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity18.50
▷ Minimum class complexity6.00
▷ Maximum class complexity31.00
Average method complexity6.00
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions47
▷ Named functions47100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lswr-assets/images/arrow-left.png0.17KB0.25KB0.00%
lswr-assets/images/arrow-right.png0.15KB0.23KB0.00%