78% ie-css-definer

Code Review | IE CSS Definer

WordPress plugin IE CSS Definer scored 78% from 54 tests.

About plugin

  • Plugin page: ie-css-definer
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6.1
  • WordPress version: 5.9.2
  • First release: Jul 4, 2012
  • Latest release: Sep 19, 2013
  • Number of updates: 12
  • Update frequency: every 39.7 days
  • Top authors: hebeisenconsulting (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 3,452 total downloads

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: ▼0.01MB] [CPU: ▼290.14ms] Passed 4 tests

Analyzing server-side resources used by IE CSS Definer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0153.84 ▲1.71
Dashboard /wp-admin3.42 ▲0.0132.84 ▼0.25
Posts /wp-admin/edit.php3.65 ▲0.0147.04 ▲8.00
Add New Post /wp-admin/post-new.php6.89 ▼0.0893.13 ▼1,160.36
Media Library /wp-admin/upload.php3.30 ▲0.0124.07 ▼1.65
iE CSS/SCRIPT Definer /wp-admin/tools.php?page=ie-css-slug3.2522.24

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: 1 new table, no new options
New tables
wp_ie_css

Browser metrics Passed 4 tests

This is an overview of browser requirements for IE CSS Definer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,768 ▲1415.78 ▼0.195.60 ▼0.362.75 ▼0.34
Dashboard /wp-admin2,897 ▲365.98 ▼0.30115.03 ▼19.67155.28 ▼6.86
Posts /wp-admin/edit.php2,693 ▲53.24 ▲0.0162.59 ▼2.22140.65 ▼0.60
Add New Post /wp-admin/post-new.php1,638 ▼2218.77 ▲3.13489.37 ▲57.34153.74 ▼4.30
Media Library /wp-admin/upload.php1,703 ▲55.43 ▼0.07135.44 ▼7.51192.14 ▲11.23
iE CSS/SCRIPT Definer /wp-admin/tools.php?page=ie-css-slug1,1732.4453.76113.48

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 tables detected upon uninstall: 1 table
    • wp_ie_css

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
    • > GET request to /wp-admin/tools.php?page=ie-css-slug
    • > Notice in wp-content/plugins/ie-css-definer/ie-css-definer.php+192
    Undefined index: a

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ie-css-definer/ie-css-definer.php:27

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
9 plugin tags: internet explorer, css bug, ie css, ie anomaly, ie bug...

ie-css-definer/ie-css-definer.php 92% from 13 tests

Analyzing the main PHP file in "IE CSS Definer" version 1.3
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 153 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin410 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1135147410

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin