83% web4pro-no-internet-explorer

Code Review | Web4pro NoIE

WordPress plugin Web4pro NoIE scored 83% from 53 tests.

About plugin

  • Plugin page: web4pro-no-intern...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1+
  • WordPress version: 5.8.1
  • First release: Sep 5, 2014
  • Latest release: Dec 11, 2015
  • Number of updates: 6
  • Update frequency: every 77.2 days
  • Top authors: WEB4PRO_co (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 504 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.90MB] [CPU: ▼305.16ms] Passed 4 tests

Server-side resources used by Web4pro NoIE
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0234.72 ▲0.88
Dashboard /wp-admin2.75 ▼0.3019.95 ▼19.62
Posts /wp-admin/edit.php2.75 ▼0.3522.63 ▼22.48
Add New Post /wp-admin/post-new.php2.75 ▼2.6820.48 ▼1,158.47
Media Library /wp-admin/upload.php2.75 ▼0.2617.98 ▼20.05

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Web4pro NoIE
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,722 ▲14015.90 ▲0.337.86 ▲0.2746.82 ▼2.86
Dashboard /wp-admin2,976 ▲1236.17 ▲0.30147.53 ▲10.40102.95 ▲2.18
Posts /wp-admin/edit.php2,723 ▲202.69 ▼0.0066.26 ▼7.4494.03 ▲4.41
Add New Post /wp-admin/post-new.php1,666 ▼18718.80 ▲0.01350.01 ▼8.50102.81 ▼10.72
Media Library /wp-admin/upload.php1,792 ▲175.02 ▲0.03153.59 ▲8.46105.09 ▼7.63

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5495
    has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/web4pro-no-internet-explorer/noie_template.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/web4pro-no-internet-explorer/w4p_noie.php:10

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, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Please add images for these screenshots: #1 (Web4pro NoIE settings page), #2 (Page which user can view when opens a site with Web4pro NoIE plugin from Internet Explorer 6 or 7.)
  • Tested up to: Version format is invalid
You can take inspiration from this readme.txt

web4pro-no-internet-explorer/w4p_noie.php 92% from 13 tests

The principal PHP file in "Web4pro NoIE" v. 1.0 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("web4pro-no-internet-explorer.php" instead of "w4p_noie.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected194 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2218163
CSS11031

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.28MB with 0.19MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
Screenshot-1.png16.96KB6.80KB▼ 59.89%
Screenshot-2.png274.19KB77.20KB▼ 71.84%