10% wp-ehilapp

Code Review | WP Ehilapp

WordPress plugin WP Ehilapp scored 10% from 54 tests.

About plugin

  • Plugin page: wp-ehilapp
  • Plugin version: 2.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.16-5.4.2
  • WordPress version: 5.8.1
  • First release: Nov 26, 2018
  • Latest release: Jun 24, 2020
  • Number of updates: 28
  • Update frequency: every 20.6 days
  • Top authors: alessandrolittera (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 395 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/wp-ehilapp/wp-ehilapp.php+66
    Undefined variable: c_invarr

Server metrics [RAM: ▼1.89MB] [CPU: ▼192.13ms] Passed 4 tests

A check of server-side resources used by WP Ehilapp
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /1.74 ▼0.988.33 ▼18.47
Dashboard /wp-admin1.76 ▼1.297.47 ▼39.52
Posts /wp-admin/edit.php1.76 ▼1.348.30 ▼39.55
Add New Post /wp-admin/post-new.php1.76 ▼3.678.04 ▼659.46
Media Library /wp-admin/upload.php1.76 ▼1.247.56 ▼30.00

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 2 new options
New WordPress options
wp_ehilapp_options_cat_inv
wp_ehilapp_options_tag_inv

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Ehilapp
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,742 ▲14616.00 ▲0.399.64 ▲0.4853.29 ▲8.36
Dashboard /wp-admin2,986 ▲555.93 ▼0.04140.38 ▼19.49148.83 ▲25.63
Posts /wp-admin/edit.php2,774 ▲352.72 ▲0.0167.42 ▼7.7497.41 ▲0.07
Add New Post /wp-admin/post-new.php1,700 ▲1717.78 ▼0.64431.28 ▲24.75118.52 ▲5.08
Media Library /wp-admin/upload.php1,768 ▼425.01 ▼0.04154.39 ▼1.10147.94 ▲26.80

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/wp-ehilapp/wp-ehilapp.php+66
    Undefined variable: c_invarr

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
Everything seems fine, however 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
The following issues need your attention
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-ehilapp/includes/css-js.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-ehilapp/includes/mail.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'WP_EHILAPP' not found in wp-content/plugins/wp-ehilapp/includes/page.php:3
    • > PHP Notice
      Undefined variable: params in wp-content/plugins/wp-ehilapp/includes/popup.php on line 409
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-ehilapp/includes/newcattag.php:44
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/wp-ehilapp/includes/popup.php on line 409

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)
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
4 plugin tags: article, ehilapp, notify, smartphone

wp-ehilapp/wp-ehilapp.php 85% from 13 tests

The principal PHP file in "WP Ehilapp" v. 2.3 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Domain Path: Use only dashes and lowercase characters for the domain path ("lang/")
  • Domain Path: The domain path must begin with a forward slash character ("/lang/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected943 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP730348883
CSS28044
JavaScript18116

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity1.84
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/popup-mobile-hover.png12.15KB5.83KB▼ 51.99%
images/popup-mobile.png11.63KB5.95KB▼ 48.88%
images/ehilapp_icon_16.png0.75KB0.74KB▼ 2.08%
images/ehilapp.png6.60KB3.92KB▼ 40.64%
images/closebox.png1.39KB1.40KB0.00%