84% unsupported-browser-notification

Code Review | Unsupported Browser Notification

WordPress plugin Unsupported Browser Notification scored 84% from 54 tests.

About plugin

  • Plugin page: unsupported-brows...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.3
  • WordPress version: 6.3.1
  • First release: Oct 29, 2015
  • Latest release: Oct 29, 2015
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: ownego (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active / 1,878 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

An overview of server-side resources used by Unsupported Browser Notification
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.48 ▼3.78
Dashboard /wp-admin3.31 ▲0.0045.92 ▲0.17
Posts /wp-admin/edit.php3.36 ▲0.0051.02 ▲3.87
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.71 ▲0.61
Media Library /wp-admin/upload.php3.23 ▲0.0035.09 ▲0.20

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Unsupported Browser Notification: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.24 ▼1.081.70 ▼0.0440.17 ▼2.64
Dashboard /wp-admin2,206 ▲214.90 ▼0.16107.56 ▼2.1741.85 ▼3.65
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0341.47 ▲0.5233.79 ▼2.86
Add New Post /wp-admin/post-new.php1,542 ▲1418.47 ▲0.34620.51 ▲3.4253.35 ▼5.45
Media Library /wp-admin/upload.php1,391 ▲64.22 ▲0.0497.13 ▲1.6343.05 ▲3.38

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/unsupported-browser-notification/supported-browser.php:457

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)
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: browser, suggested browser, browser recommendation, update browser, unsupported browser notification...

unsupported-browser-notification/supported-browser.php 92% from 13 tests

The principal PHP file in "Unsupported Browser Notification" v. 1.0.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("unsupported-browser-notification.php" instead of "supported-browser.php")

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
There were no executable files found in this plugin555 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP152109404
PO File1212371
CSS10555
JavaScript14225

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity2.11
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods27100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
No PNG files were detected