10% nomoreie6please

Code Review | NoMoreIE6Please

WordPress plugin NoMoreIE6Please scored10%from 54 tests.

About plugin

  • Plugin page: nomoreie6please
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.3.1
  • WordPress version: 6.3.1
  • First release: Apr 11, 2012
  • Latest release: Apr 19, 2012
  • Number of updates: 13
  • Update frequency: every 0.6 days
  • Top authors: gilu (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /941 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/nomoreie6please/nomoreie6please.php+11
    Methods with the same name as their class will not be constructors in a future version of PHP; NoMoreIE6Please has a deprecated constructor

Server metrics [RAM: ▼2.10MB] [CPU: ▼61.22ms] Passed 4 tests

A check of server-side resources used by NoMoreIE6Please
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.18 ▼1.554.87 ▼42.62
Dashboard /wp-admin2.20 ▼1.436.00 ▼59.05
Posts /wp-admin/edit.php2.20 ▼1.488.50 ▼41.16
Add New Post /wp-admin/post-new.php2.20 ▼3.957.10 ▼102.05
Media Library /wp-admin/upload.php2.20 ▼1.296.23 ▼32.75

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_nomoreie6please
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by NoMoreIE6Please
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.38 ▲0.361.80 ▼0.2343.50 ▼1.09
Dashboard /wp-admin2,198 ▲215.66 ▼0.0393.35 ▲5.8840.49 ▼0.02
Posts /wp-admin/edit.php2,100 ▼32.04 ▲0.0339.34 ▼1.2835.62 ▲0.02
Add New Post /wp-admin/post-new.php1,526 ▼017.66 ▲0.21654.58 ▲51.0749.90 ▼1.02
Media Library /wp-admin/upload.php1,394 ▼64.24 ▼0.0099.93 ▼20.8941.90 ▼5.00

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/nomoreie6please/nomoreie6please.php+11
    Methods with the same name as their class will not be constructors in a future version of PHP; NoMoreIE6Please has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_nomoreie6please
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/nomoreie6please/nomoreie6please.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Widget after inserting into the sidebar), #2 (Widget at work)
The official readme.txt might help

nomoreie6please/nomoreie6please.php Passed 13 tests

The main PHP file in "NoMoreIE6Please" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
103 characters long description:
This widget gives e custom warning to a user with any old Browser and kindly asks to update it a.s.a.p.

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
Good job! No executable or dangerous file extensions detected297 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15237297

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity52.00
▷ Minimum class complexity52.00
▷ Maximum class complexity52.00
Average method complexity8.29
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.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
17 PNG files occupy 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/24_opera.png4.06KB1.41KB▼ 65.34%
screenshot-1.png13.56KB6.44KB▼ 52.49%
images/16_opera.png3.38KB0.78KB▼ 76.93%
images/24_ie.png4.22KB1.43KB▼ 66.20%
images/16_chrome.png3.57KB0.98KB▼ 72.64%