83% rs-logo-showcase

Code Review | RS Logo Showcase

WordPress plugin RS Logo Showcase scored 83% from 54 tests.

About plugin

  • Plugin page: rs-logo-showcase
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2-5.6
  • WordPress version: 6.3.1
  • First release: Aug 9, 2019
  • Latest release: Feb 1, 2021
  • Number of updates: 29
  • Update frequency: every 18.7 days
  • Top authors: rstheme2017 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,133 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 gracefully, with no errors

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

This is a short check of server-side resources used by RS Logo Showcase
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0838.49 ▼8.75
Dashboard /wp-admin3.36 ▲0.0644.98 ▲3.53
Posts /wp-admin/edit.php3.41 ▲0.0642.38 ▼12.83
Add New Post /wp-admin/post-new.php5.97 ▲0.0880.11 ▼27.51
Media Library /wp-admin/upload.php3.28 ▲0.0642.41 ▲4.36
All Logos /wp-admin/edit.php?post_type=rst-logo3.3331.30
Categories /wp-admin/edit-tags.php?taxonomy=logo-category&post_type=rst-logo3.2828.44
Add New Logo /wp-admin/post-new.php?post_type=rst-logo3.4261.99
All Shortcodes /wp-admin/edit.php?post_type=rst_logo_settings3.3332.54
Create Shortcode /wp-admin/post-new.php?post_type=rst_logo_settings3.6157.70

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for RS Logo Showcase
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,960 ▲17014.52 ▲1.305.66 ▲3.8044.38 ▼7.16
Dashboard /wp-admin2,270 ▲615.07 ▲0.20116.94 ▲17.1588.08 ▲48.17
Posts /wp-admin/edit.php2,161 ▲722.34 ▲0.3336.94 ▼8.2237.17 ▼3.87
Add New Post /wp-admin/post-new.php1,725 ▲19722.64 ▲1.84776.89 ▲50.0961.36 ▼0.78
Media Library /wp-admin/upload.php1,446 ▲584.44 ▲0.19106.32 ▼27.2269.64 ▲10.12
All Logos /wp-admin/edit.php?post_type=rst-logo1,1392.2938.5433.01
Categories /wp-admin/edit-tags.php?taxonomy=logo-category&post_type=rst-logo1,3342.0731.5929.92
Add New Logo /wp-admin/post-new.php?post_type=rst-logo2,3607.93188.88125.10
All Shortcodes /wp-admin/edit.php?post_type=rst_logo_settings1,1302.2734.7731.97
Create Shortcode /wp-admin/post-new.php?post_type=rst_logo_settings2,4892.9899.3578.48

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

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 everything seems fine, this is not 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
The following issues need your attention
  • 46× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/rs-logo-showcase/includes/admin/metabox/tab/slider-tab.php:3
    • > PHP Notice
      Undefined variable: post_id in wp-content/plugins/rs-logo-showcase/includes/view/slider1.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rs-logo-showcase/rst-logo.php:21
    • > PHP Notice
      Undefined variable: post_id in wp-content/plugins/rs-logo-showcase/includes/view/grid5.php on line 3
    • > PHP Notice
      Undefined variable: que in wp-content/plugins/rs-logo-showcase/includes/view/list.php on line 8
    • > PHP Notice
      Undefined variable: slider_nav_arrow in wp-content/plugins/rs-logo-showcase/includes/view/slider3.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/rs-logo-showcase/includes/admin/metabox/tab/style-tab.php:1
    • > PHP Notice
      Undefined variable: que in wp-content/plugins/rs-logo-showcase/includes/view/grid6.php on line 6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rs-logo-showcase/includes/admin/metabox/settings.php:10
    • > PHP Fatal error
      Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/rs-logo-showcase/includes/view/grid1.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #6 in rs-logo-showcase/assets to your readme.txt
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
You can look at the official readme.txt

rs-logo-showcase/rst-logo.php 85% from 13 tests

The principal PHP file in "RS Logo Showcase" v. 1.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("rs-logo-showcase.php" instead of "rst-logo.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected10,289 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
CSS7657994,534
SVG1002,671
JavaScript44949582,034
PHP20276911,050

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
lib/images/icon-admin.png1.10KB0.17KB▼ 84.97%
assets/images/icon-admin.png1.10KB0.17KB▼ 84.97%