78% ns-ie-compatibility-fixer

Code Review | NS Ie Compatibility Fixer

WordPress plugin NS Ie Compatibility Fixer scored78%from 54 tests.

About plugin

  • Plugin page: ns-ie-compatibili...
  • Plugin version: 2.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.9
  • WordPress version: 6.3.1
  • First release: Dec 11, 2016
  • Latest release: Feb 4, 2022
  • Number of updates: 43
  • Update frequency: every 43.7 days
  • Top authors: nsthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /3,893 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.08MB] [CPU: ▼4.28ms] Passed 4 tests

Analyzing server-side resources used by NS Ie Compatibility Fixer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0642.64 ▲3.05
Dashboard /wp-admin3.38 ▲0.0850.82 ▼5.61
Posts /wp-admin/edit.php3.50 ▲0.1454.33 ▼0.75
Add New Post /wp-admin/post-new.php5.99 ▲0.0986.40 ▼11.50
Media Library /wp-admin/upload.php3.31 ▲0.0737.77 ▲0.73
IE Compatibility fixer /wp-admin/admin.php?page=ns-ie-compatibility-fixer/ns-admin-options/ns_admin_option_dashboard.php3.2849.02
How to install premium version /wp-admin/admin.php?page=how-to-install-premium-version3.2540.08
/wp-admin/admin.php?page=plugineye2503.2741.75

Server storage [IO: ▲0.25MB] [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: 25 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for NS Ie Compatibility Fixer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.36 ▼0.031.79 ▲0.0643.20 ▼5.56
Dashboard /wp-admin2,210 ▲335.54 ▼0.1097.32 ▲4.0083.12 ▲36.79
Posts /wp-admin/edit.php2,130 ▲271.99 ▼0.0138.09 ▲1.4933.69 ▲0.66
Add New Post /wp-admin/post-new.php1,553 ▲2520.92 ▼2.24701.10 ▲10.8854.69 ▼4.04
Media Library /wp-admin/upload.php1,421 ▲214.18 ▲0.07103.47 ▼3.4179.01 ▲33.40
IE Compatibility fixer /wp-admin/admin.php?page=ns-ie-compatibility-fixer/ns-admin-options/ns_admin_option_dashboard.php9451.9931.2228.02
How to install premium version /wp-admin/admin.php?page=how-to-install-premium-version6911.518.1124.16
/wp-admin/admin.php?page=plugineye2509212.0130.0027.92

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=how-to-install-premium-version
    • > Warning in wp-includes/pluggable.php+1438
    Cannot modify header information - headers already sent by (output started at wp-includes/script-loader.php:2838)

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 fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ns-ie-compatibility-fixer/plugineye/plugineye-ajax/plugineye_on_deactivation_function.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Please add images for these screenshots: #1 (Ie compatibility back-end.), #2 (Ie compatibility source.)
You can take inspiration from this readme.txt

ns-ie-compatibility-fixer/ns-ie-compatibility-fixer.php Passed 13 tests

The main PHP file in "NS Ie Compatibility Fixer" ver. 2.1.5 adds more information about the plugin and also serves as the entry point for this plugin
60 characters long description:
This plugin force ie to see compatibility in lastest version

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
Everything looks great! No dangerous files found in this plugin917 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP1046177545
CSS3238286
PO File1212158
JavaScript14028

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity2.23
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods526.32%
▷ Protected methods00.00%
▷ Private methods1473.68%
Functions14
▷ Named functions428.57%
▷ Anonymous functions1071.43%
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
5 PNG files occupy 0.21MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png140.08KB36.96KB▼ 73.61%
ns-admin-options/img/backend-sidebar-icon.png1.48KB0.54KB▼ 63.47%
screenshot-2.png16.50KB4.25KB▼ 74.22%
ns-admin-options/img/ns-theme-promo.png29.37KB8.96KB▼ 69.50%
ns-admin-options/img/ns_banner_membership-500.png24.95KB26.27KB0.00%