10% rnn-browser-support

Code Review | RNN Browser Support

WordPress plugin RNN Browser Support scored10%from 54 tests.

About plugin

  • Plugin page: rnn-browser-support
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 25, 2020
  • Latest release: May 9, 2022
  • Number of updates: 12
  • Update frequency: every 65.6 days
  • Top authors: resennet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,779 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Parse error in wp-content/plugins/rnn-browser-support/rnn-browser-support.php+72
    syntax error, unexpected end of file

Server metrics [RAM: ▲0.00MB] [CPU: ▲0.19ms] Passed 4 tests

This is a short check of server-side resources used by RNN Browser Support
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0042.93 ▲3.36
Dashboard /wp-admin3.31 ▲0.0052.20 ▲3.85
Posts /wp-admin/edit.php3.36 ▲0.0052.08 ▼1.16
Add New Post /wp-admin/post-new.php5.89 ▲0.00107.39 ▲6.63
Media Library /wp-admin/upload.php3.23 ▲0.0034.31 ▼5.28

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-posts
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for RNN Browser Support
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.18 ▼1.501.90 ▼0.0946.50 ▼6.48
Dashboard /wp-admin2,203 ▲155.81 ▼0.06110.07 ▼0.1045.12 ▼1.84
Posts /wp-admin/edit.php2,089 ▼32.01 ▼0.0542.08 ▼0.8236.58 ▼4.44
Add New Post /wp-admin/post-new.php1,533 ▼523.25 ▲0.01714.86 ▼7.0161.13 ▲3.20
Media Library /wp-admin/upload.php1,391 ▲34.20 ▼0.03108.09 ▼15.3247.66 ▼3.20

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/rnn-browser-support/rnn-browser-support.php on line 72

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: rnn, supported browser, support, browser, browser support

rnn-browser-support/rnn-browser-support.php 92% from 13 tests

The primary PHP file in "RNN Browser Support" version 1.0.3 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin49 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2141149

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Functions3
▷ Named functions3100.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
No PNG images were found in this plugin