84% ie6-upgrade-option

Code Review | IE6 Upgrade Option

WordPress plugin IE6 Upgrade Option scored84%from 54 tests.

About plugin

  • Plugin page: ie6-upgrade-option
  • Plugin version: 3.8
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 12, 2010
  • Latest release: Feb 23, 2023
  • Number of updates: 99
  • Update frequency: every 49.3 days
  • Top authors: doc4 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /19,143 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

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

An overview of server-side resources used by IE6 Upgrade Option
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0143.28 ▼2.39
Dashboard /wp-admin3.32 ▼0.0348.40 ▼18.79
Posts /wp-admin/edit.php3.37 ▲0.0145.93 ▼5.46
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.20 ▼18.44
Media Library /wp-admin/upload.php3.24 ▲0.0136.20 ▼0.15

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for IE6 Upgrade Option
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▲0.171.95 ▲0.2848.31 ▲2.16
Dashboard /wp-admin2,192 ▲155.61 ▼0.0884.84 ▼5.7938.82 ▲0.01
Posts /wp-admin/edit.php2,100 ▲31.99 ▲0.0034.43 ▼3.6737.17 ▲0.54
Add New Post /wp-admin/post-new.php1,535 ▲918.21 ▼4.86632.51 ▼55.1667.92 ▲14.58
Media Library /wp-admin/upload.php1,400 ▼04.24 ▲0.04104.20 ▼16.7843.39 ▼5.73

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means 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
Please take a closer look at the following
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Undefined index: HTTP_USER_AGENT in wp-content/plugins/ie6-upgrade-option/ie6-upgrade-option.php on line 140
    • > PHP Notice
      Undefined index: HTTP_USER_AGENT in wp-content/plugins/ie6-upgrade-option/ie6-upgrade-option.php on line 33
    • > PHP Notice
      Undefined index: HTTP_USER_AGENT in wp-content/plugins/ie6-upgrade-option/ie6-upgrade-option.php on line 33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ie6-upgrade-option/multi-browser/ie6-upgrade-option.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% 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:
  • Tags: Too many tags (24 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

ie6-upgrade-option/ie6-upgrade-option.php Passed 13 tests

"IE6 Upgrade Option" version 3.8's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
88 characters long description:
Generates an optional IE6 upgrade message as a plugin with output only for MSIE browsers

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin889 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript115414
CSS1417221
JSON900162
PHP25111792

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Methods1
▷ Static methods00.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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