83% wp-brand-logo-slider

Code Review | WP Brand Logo Slider

WordPress plugin WP Brand Logo Slider scored83%from 54 tests.

About plugin

  • Plugin page: wp-brand-logo-slider
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1
  • WordPress version: 6.3.1
  • First release: Aug 14, 2018
  • Latest release: Feb 24, 2019
  • Number of updates: 27
  • Update frequency: every 7.2 days
  • Top authors: dhasib (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /1,791 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼3.36ms] Passed 4 tests

Analyzing server-side resources used by WP Brand Logo Slider
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0944.68 ▲4.56
Dashboard /wp-admin3.38 ▲0.0847.11 ▼3.20
Posts /wp-admin/edit.php3.43 ▲0.0847.81 ▼5.77
Add New Post /wp-admin/post-new.php5.98 ▲0.1083.22 ▼4.12
Media Library /wp-admin/upload.php3.31 ▲0.0834.74 ▼0.34
Brand Settings /wp-admin/edit.php?post_type=brand&page=wp-brand-slider3.2835.74
Add New Brand /wp-admin/post-new.php?post_type=brand3.4257.02
All Brands /wp-admin/edit.php?post_type=brand3.3535.68

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Brand Logo Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,931 ▲17013.50 ▼0.899.38 ▲7.6942.46 ▼1.97
Dashboard /wp-admin2,242 ▲685.72 ▲0.0786.93 ▲1.5239.24 ▲1.97
Posts /wp-admin/edit.php2,149 ▲492.25 ▲0.2534.95 ▼6.3633.73 ▼4.47
Add New Post /wp-admin/post-new.php1,568 ▲3123.18 ▲4.97601.18 ▼10.3934.03 ▼31.56
Media Library /wp-admin/upload.php1,447 ▲474.38 ▲0.1395.78 ▼12.1041.04 ▼5.24
Brand Settings /wp-admin/edit.php?post_type=brand&page=wp-brand-slider1,7248.45235.1263.71
Add New Brand /wp-admin/post-new.php?post_type=brand2,3197.89161.6369.07
All Brands /wp-admin/edit.php?post_type=brand1,1282.1833.6828.02

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

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
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
Almost there! Just fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-brand-logo-slider/lib/brnd-style.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-brand-logo-slider/wp-brand-slider.php:74
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-brand-logo-slider/lib/functions.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (Front End), #2 (Brand Settings), #3 (Back End)
You can take inspiration from this readme.txt

wp-brand-logo-slider/wp-brand-slider.php 77% from 13 tests

"WP Brand Logo Slider" version 1.1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 211 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-brand-logo-slider.php" instead of "wp-brand-slider.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
Good job! No executable or dangerous file extensions detected740 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript28245307
PHP32838297
CSS2141136

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.34
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%
Functions11
▷ Named functions11100.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
4 PNG files occupy 0.17MB with 0.07MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/review.png0.64KB0.64KB0.00%
screenshot-3.png73.43KB30.39KB▼ 58.62%
screenshot-1.png58.98KB17.70KB▼ 69.99%
screenshot-2.png36.11KB18.12KB▼ 49.82%