10% rhino-support

Code Review | Rhino Support for WordPress

WordPress plugin Rhino Support for WordPress scored10%from 54 tests.

About plugin

  • Plugin page: rhino-support
  • Plugin version: 1.0.62
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.8
  • WordPress version: 6.3.1
  • First release: Jun 25, 2013
  • Latest release: Jul 17, 2014
  • Number of updates: 27
  • Update frequency: every 14.5 days
  • Top authors: rhinoron (81.48%)rhinosupport (22.22%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /4,348 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/rhino-support/rhino.php+36
    Methods with the same name as their class will not be constructors in a future version of PHP; WP_Rhino_Support has a deprecated constructor

Server metrics [RAM: ▼1.73MB] [CPU: ▼53.56ms] Passed 4 tests

A check of server-side resources used by Rhino Support for WordPress
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.26 ▼1.204.67 ▼33.84
Dashboard /wp-admin2.28 ▼1.025.31 ▼47.21
Posts /wp-admin/edit.php2.28 ▼1.077.63 ▼41.65
Add New Post /wp-admin/post-new.php2.28 ▼3.616.11 ▼91.52
Media Library /wp-admin/upload.php2.28 ▼0.956.80 ▼29.29
Setings /wp-admin/admin.php?page=rhino-support/admin/rhino-settings.php2.285.34

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 51 new files
Database: no new tables, 17 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
wprhinosupport_create_thankyou_value1
wprhinosupport_scroller_tab
db_upgraded
rhino_license_status
wprhinosupport_external_internal
widget_theysaidso_widget
wprhinosupport_scroller_pixel
widget_recent-posts
...

Browser metrics Passed 4 tests

Rhino Support for WordPress: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,898 ▲15213.53 ▼1.097.43 ▲5.7336.70 ▼3.81
Dashboard /wp-admin2,220 ▲324.87 ▲0.01109.90 ▲6.3787.49 ▲43.55
Posts /wp-admin/edit.php2,106 ▲172.02 ▲0.0034.07 ▼5.1528.60 ▼4.53
Add New Post /wp-admin/post-new.php1,534 ▲1323.08 ▼0.42765.34 ▲79.3658.91 ▼2.26
Media Library /wp-admin/upload.php1,399 ▲114.23 ▲0.1394.48 ▼14.1969.62 ▲23.34
Setings /wp-admin/admin.php?page=rhino-support/admin/rhino-settings.php1,1372.5044.8238.02

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/rhino-support/rhino.php+36
    Methods with the same name as their class will not be constructors in a future version of PHP; WP_Rhino_Support has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 17 options in the database
    • wprhinosupport_create_thankyou_value1
    • wprhinosupport_scroller_offline
    • can_compress_scripts
    • wprhinosupport_create_thankyou
    • widget_recent-comments
    • rhino_last_license_check
    • wprhinosupport_scroller_pixel
    • wprhinosupport_scroller_color
    • widget_recent-posts
    • wprhinosupport_scroller_online
    • ...

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=rhino-support/admin/rhino-settings.php
    • > Deprecated in wp-content/plugins/rhino-support/rhino.php+36
    Methods with the same name as their class will not be constructors in a future version of PHP; WP_Rhino_Support has a deprecated constructor
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=rhino-support/admin/rhino-settings.php
    • > Notice in wp-content/plugins/rhino-support/core/class-rhino-pluginmethods.php+29
    Undefined variable: wlmc
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=rhino-support/admin/rhino-settings.php
    • > Notice in wp-content/plugins/rhino-support/core/class-rhino-pluginmethods.php+29
    Undefined variable: special_codes
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=rhino-support/admin/rhino-settings.php
    • > Warning in wp-content/plugins/rhino-support/core/RhinoTinyMCEPlugin.php+263
    count(): Parameter must be an array or an object that implements Countable
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=rhino-support/admin/rhino-settings.php
    • > User notice in wp-includes/functions.php+5905
    Function wp_deregister_script was called incorrectly. Do not deregister the jquery script in the administration area. To target the front-end theme, use the wp_enqueue_scripts hook. Please see Debugging in WordPress for more information. (This message was added in version 3.6.0.)
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=rhino-support/admin/rhino-settings.php
    • > Notice in wp-content/plugins/rhino-support/admin/rhino-settings.php+145
    Undefined variable: apifetchresult
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=rhino-support/admin/rhino-settings.php
    • > Notice in wp-content/plugins/rhino-support/admin/rhino-settings.php+145
    Trying to access array offset on value of type null
    • > GET request to /wp-admin/admin.php?page=rhino-support/admin/rhino-settings.php
    • > Warning in wp-content/plugins/rhino-support/rhino.php+544
    A non-numeric value encountered

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/admin.php?page=rhino-support/admin/rhino-settings.php
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: Cannot read properties of null (reading '0')" "TypeError: Cannot read properties of null (reading '0')\n at getShadeInvert (/wp-admin/admin.php?page=rhino-support%2Fadmin%2Frhino-settings.php:275:16)\n at changeScrollerImage (/wp-admin/admin.php?page=rhino-support%2Fadmin%2Frhino-settings.php:185:22)\n at HTMLDocument.\u003Canonymous> (/wp-admin/admin.php?page=rhino-support%2Fadmin%2Frhino-settings.php:228:3)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
    • > GET request to /wp-admin/admin.php?page=rhino-support/admin/rhino-settings.php
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: Cannot read properties of null (reading '0')

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Donate link: Please fix this invalid URI: ""
The official readme.txt might help

rhino-support/rhino.php 77% from 13 tests

Analyzing the main PHP file in "Rhino Support for WordPress" version 1.0.62
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("rhino-support.php" instead of "rhino.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 151 characters long)
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected16,121 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript72,2611,65612,360
CSS6272952,568
PHP42341401,193

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity51.25
▷ Minimum class complexity33.00
▷ Maximum class complexity68.00
Average method complexity4.94
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods51
▷ Static methods00.00%
▷ Public methods51100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
28 PNG files occupy 0.52MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/timer-black.png0.51KB0.48KB▼ 6.27%
images/chosen-sprite@2x.png0.85KB0.83KB▼ 3.10%
images/stars.png3.04KB1.67KB▼ 45.07%
images/filmstrip.png2.78KB0.11KB▼ 96.21%
images/rainbow.png2.64KB1.74KB▼ 34.05%