100% outdated-browser

Code Review | Outdated Browser

WordPress plugin Outdated Browser scored 100% from 54 tests.

About plugin

  • Plugin page: outdated-browser
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.4
  • WordPress version: 5.8.1
  • First release: Jun 29, 2014
  • Latest release: Mar 14, 2020
  • Number of updates: 4
  • Update frequency: every 521.3 days
  • Top authors: tareq1988 (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 2,314 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

A check of server-side resources used by Outdated Browser
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1334.94 ▲15.94
Dashboard /wp-admin3.06 ▲0.0044.72 ▼5.11
Posts /wp-admin/edit.php3.11 ▲0.0144.75 ▼9.89
Add New Post /wp-admin/post-new.php5.42 ▼0.0187.75 ▼582.31
Media Library /wp-admin/upload.php3.01 ▲0.0027.61 ▼7.31

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Outdated Browser
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,842 ▲24616.40 ▲0.9113.23 ▲3.7647.96 ▼3.26
Dashboard /wp-admin2,973 ▲366.09 ▼0.15136.19 ▼31.76117.42 ▼12.15
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0060.61 ▼17.4278.52 ▼20.43
Add New Post /wp-admin/post-new.php1,872 ▲36519.11 ▲2.26371.98 ▼7.73104.80 ▼1.62
Media Library /wp-admin/upload.php1,810 ▲35.03 ▼0.03150.36 ▲5.61119.87 ▲9.45

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
7 plugin tags: browsers, ie, html5, browser, modernizer...

outdated-browser/outdated-browser.php Passed 13 tests

The entry point to "Outdated Browser" version 0.1 is a PHP file that has certain tags in its header comment area
71 characters long description:
Detects outdated browsers and advises users to upgrade to a new version

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
There were no executable files found in this plugin38 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1144436
CSS1071
JavaScript1071

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin