78% ie-compatibility-mode-checker

Code Review | WP IE Compatibility Checker

WordPress plugin WP IE Compatibility Checker scored 78% from 54 tests.

About plugin

  • Plugin page: ie-compatibility-...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.9
  • WordPress version: 5.8.1
  • First release: Dec 11, 2015
  • Latest release: Nov 10, 2017
  • Number of updates: 3
  • Update frequency: every 234.3 days
  • Top authors: Jonathandejong (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active / 1,308 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.02MB] [CPU: ▼188.12ms] Passed 4 tests

A check of server-side resources used by WP IE Compatibility Checker
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.58 ▼0.2514.68 ▼17.61
Dashboard /wp-admin2.63 ▼0.4319.83 ▼23.91
Posts /wp-admin/edit.php2.63 ▼0.4816.35 ▼19.24
Add New Post /wp-admin/post-new.php2.63 ▼2.8013.38 ▼690.17
Media Library /wp-admin/upload.php2.63 ▼0.3817.12 ▼19.14
IE Checker /wp-admin/options-general.php?page=wp_ie_check2.6316.80

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for WP IE Compatibility Checker
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,823 ▲22716.67 ▲0.8113.09 ▲3.4249.04 ▼0.02
Dashboard /wp-admin2,983 ▲525.92 ▲0.00133.06 ▼6.99107.95 ▼8.16
Posts /wp-admin/edit.php2,746 ▲72.71 ▲0.0063.70 ▲1.3092.85 ▼0.80
Add New Post /wp-admin/post-new.php1,679 ▲17918.74 ▲0.01354.40 ▼7.92110.82 ▼1.40
Media Library /wp-admin/upload.php1,817 ▲75.04 ▼0.01135.78 ▼8.08121.76 ▲1.28
IE Checker /wp-admin/options-general.php?page=wp_ie_check1,3172.2960.4377.93

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/ie-compatibility-mode-checker/public/class-wp-ie-check-public.php+56
    Trying to access array offset on value of type bool

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp_ie_check
    • > Notice in wp-content/plugins/ie-compatibility-mode-checker/admin/partials/wp-ie-check-admin-display.php+22
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/ie-compatibility-mode-checker/public/partials/wp-ie-check-public-display.php:7
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/ie-compatibility-mode-checker/admin/partials/wp-ie-check-admin-display.php:8

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)
Everything seems fine on the user side


Plugin configuration 93% 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
6 plugin tags: popup, warning, internet explorer, checker, ie...

ie-compatibility-mode-checker/wp-ie-check.php 85% from 13 tests

Analyzing the main PHP file in "WP IE Compatibility Checker" version 1.0.0
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ie-compatibility-mode-checker.php" instead of "wp-ie-check.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
No dangerous file extensions were detected517 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity5.71
▷ Minimum class complexity1.00
▷ Maximum class complexity24.00
Average method complexity2.03
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
▷ Static methods26.25%
▷ Public methods2784.38%
▷ Protected methods00.00%
▷ Private methods515.62%
▷ Named functions3100.00%
▷ Anonymous functions00.00%
▷ 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
There were not PNG files found in your plugin