10% hits-ie6-pngfix

Code Review | HITS- IE6 PNGFix

WordPress plugin HITS- IE6 PNGFix scored 10% from 54 tests.

About plugin

  • Plugin page: hits-ie6-pngfix
  • Plugin version: 3.7.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.0.1
  • WordPress version: 5.8.1
  • First release: Jul 10, 2009
  • Latest release: Dec 11, 2014
  • Number of updates: 168
  • Update frequency: every 12.6 days
  • Top authors: wpgwiggum (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active / 66,598 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/hits-ie6-pngfix/hits-pngfix.php+325
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼1.77MB] [CPU: ▼188.42ms] Passed 4 tests

This is a short check of server-side resources used by HITS- IE6 PNGFix
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /1.86 ▼0.865.06 ▼15.88
Dashboard /wp-admin1.88 ▼1.185.56 ▼41.64
Posts /wp-admin/edit.php1.88 ▼1.236.09 ▼32.30
Add New Post /wp-admin/post-new.php1.88 ▼3.565.88 ▼653.56
Media Library /wp-admin/upload.php1.88 ▼1.125.87 ▼26.17

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 1 new option
New WordPress options
hits_ie6_pngfix_options

Browser metrics Passed 4 tests

Checking browser requirements for HITS- IE6 PNGFix
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,692 ▲9615.79 ▲0.219.88 ▼1.5950.58 ▲6.57
Dashboard /wp-admin2,980 ▲465.95 ▲0.00153.58 ▲12.07109.54 ▼1.35
Posts /wp-admin/edit.php2,746 ▲102.72 ▲0.0263.21 ▼0.8689.05 ▲6.31
Add New Post /wp-admin/post-new.php1,620 ▼5221.90 ▲2.99298.76 ▼73.45107.92 ▼2.14
Media Library /wp-admin/upload.php1,816 ▲95.04 ▲0.02154.51 ▼8.90113.79 ▼1.07
HITS- IE6 PNG Fix /wp-admin/hits-pngfix.php260.900.0911.81

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/hits-ie6-pngfix/hits-pngfix.php+325
    Array and string offset access syntax with curly braces is deprecated
  • Zombie WordPress options detected upon uninstall: 1 option
    • hits_ie6_pngfix_options

Smoke tests 25% from 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 0% 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 fix the following items
  • 4× PHP files output text when accessed directly:
    • > /wp-content/plugins/hits-ie6-pngfix/THM1/iepngfix.php
    • > /wp-content/plugins/hits-ie6-pngfix/THM2/iepngfix.php
    • > /wp-content/plugins/hits-ie6-pngfix/UPNGFIX/unitpngfix.js.php
    • > /wp-content/plugins/hits-ie6-pngfix/supersleight/supersleight-min.js.php
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_locale() in wp-content/plugins/hits-ie6-pngfix/hits-pngfix.php:67
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/hits-ie6-pngfix/adminPage.php:17
    • > PHP Notice
      Undefined index: hits_ie6_pngfix_save in wp-content/plugins/hits-ie6-pngfix/adminPage.php on line 2

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
    • > GET request to /wp-admin/hits-pngfix.php
    • > Network (severe)
    wp-admin/hits-pngfix.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% 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
7 plugin tags: transparency, formatting, style, compatability, image...

hits-ie6-pngfix/hits-pngfix.php 92% from 13 tests

Analyzing the main PHP file in "HITS- IE6 PNGFix" version 3.7.0
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("hits-ie6-pngfix.php" instead of "hits-pngfix.php")

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
Good job! No executable or dangerous file extensions detected651 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP547116343
JavaScript21526145
PO File25352139
CSS12114
HTML10610

PHP code Passed 2 tests

A brief analysis 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.29
Average class complexity34.00
▷ Minimum class complexity34.00
▷ Maximum class complexity34.00
Average method complexity3.54
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin