68% responsive-logo-slideshow

Code Review | Responsive Logo Slideshow

WordPress plugin Responsive Logo Slideshow scored68%from 54 tests.

About plugin

  • Plugin page: responsive-logo-s...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-4.2.2
  • WordPress version: 6.3.1
  • First release: Feb 2, 2013
  • Latest release: Sep 9, 2015
  • Number of updates: 20
  • Update frequency: every 47.5 days
  • Top authors: opensourcetech (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

100+ active /11,317 total downloads

Benchmarks

Plugin footprint 65% 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.95MB] [CPU: ▼35.73ms] Passed 4 tests

An overview of server-side resources used by Responsive Logo Slideshow
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.30 ▲1.09
Dashboard /wp-admin2.99 ▼0.3123.62 ▼26.15
Posts /wp-admin/edit.php3.00 ▼0.3624.48 ▼26.81
Add New Post /wp-admin/post-new.php3.00 ▼2.8925.11 ▼79.18
Media Library /wp-admin/upload.php3.00 ▼0.2323.33 ▼10.76
Responsive Logo Slideshow /wp-admin/options-general.php?page=responsive-logo-slideshow/options.php3.0022.69

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Responsive Logo Slideshow
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲8713.24 ▼1.342.34 ▲0.5142.59 ▲0.47
Dashboard /wp-admin2,213 ▲224.83 ▼1.04106.94 ▲5.1442.03 ▼0.68
Posts /wp-admin/edit.php2,096 ▲72.02 ▲0.0042.41 ▲2.4935.32 ▼1.31
Add New Post /wp-admin/post-new.php1,540 ▲1123.26 ▲4.90602.14 ▼18.5449.79 ▼12.04
Media Library /wp-admin/upload.php1,392 ▲44.20 ▼0.0592.83 ▼4.1439.94 ▼4.98
Responsive Logo Slideshow /wp-admin/options-general.php?page=responsive-logo-slideshow/options.php9352.0223.7923.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=responsive-logo-slideshow/options.php
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

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 take a closer look at the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/responsive-logo-slideshow/options.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/responsive-logo-slideshow/responsive-logo-slider.php:2
    • > PHP Notice
      Undefined variable: options_page in wp-content/plugins/responsive-logo-slideshow/options.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/responsive-logo-slideshow/responsive-logo-slideshow.php:11

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 issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (screen1.png), #2 (screen2.png)
The official readme.txt might help

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

Analyzing the main PHP file in "Responsive Logo Slideshow" version 1.2
58 characters long description:
This Plugin shows 10 Logos with links in a nice slideshow.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin346 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS1182141
PHP3149109
JavaScript114096

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screen1.png26.93KB11.21KB▼ 58.36%
screen2.png36.67KB14.88KB▼ 59.43%