Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.58 ▼0.25 | 14.68 ▼17.61 |
Dashboard /wp-admin | 2.63 ▼0.43 | 19.83 ▼23.91 |
Posts /wp-admin/edit.php | 2.63 ▼0.48 | 16.35 ▼19.24 |
Add New Post /wp-admin/post-new.php | 2.63 ▼2.80 | 13.38 ▼690.17 |
Media Library /wp-admin/upload.php | 2.63 ▼0.38 | 17.12 ▼19.14 |
IE Checker /wp-admin/options-general.php?page=wp_ie_check | 2.63 | 16.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,823 ▲227 | 16.67 ▲0.81 | 13.09 ▲3.42 | 49.04 ▼0.02 |
Dashboard /wp-admin | 2,983 ▲52 | 5.92 ▲0.00 | 133.06 ▼6.99 | 107.95 ▼8.16 |
Posts /wp-admin/edit.php | 2,746 ▲7 | 2.71 ▲0.00 | 63.70 ▲1.30 | 92.85 ▼0.80 |
Add New Post /wp-admin/post-new.php | 1,679 ▲179 | 18.74 ▲0.01 | 354.40 ▼7.92 | 110.82 ▼1.40 |
Media Library /wp-admin/upload.php | 1,817 ▲7 | 5.04 ▼0.01 | 135.78 ▼8.08 | 121.76 ▲1.28 |
IE Checker /wp-admin/options-general.php?page=wp_ie_check | 1,317 | 2.29 | 60.43 | 77.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
- > PHP Fatal error
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
Optimizations
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 118 | 256 | 415 |
CSS | 2 | 16 | 16 | 82 |
JavaScript | 2 | 5 | 11 | 19 |
Markdown | 1 | 0 | 0 | 1 |
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 code | 0.19 |
Average class complexity | 5.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 2 | 6.25% |
▷ Public methods | 27 | 84.38% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 15.62% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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