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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.74 ▼0.98 | 8.33 ▼18.47 |
Dashboard /wp-admin | 1.76 ▼1.29 | 7.47 ▼39.52 |
Posts /wp-admin/edit.php | 1.76 ▼1.34 | 8.30 ▼39.55 |
Add New Post /wp-admin/post-new.php | 1.76 ▼3.67 | 8.04 ▼659.46 |
Media Library /wp-admin/upload.php | 1.76 ▼1.24 | 7.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,742 ▲146 | 16.00 ▲0.39 | 9.64 ▲0.48 | 53.29 ▲8.36 |
Dashboard /wp-admin | 2,986 ▲55 | 5.93 ▼0.04 | 140.38 ▼19.49 | 148.83 ▲25.63 |
Posts /wp-admin/edit.php | 2,774 ▲35 | 2.72 ▲0.01 | 67.42 ▼7.74 | 97.41 ▲0.07 |
Add New Post /wp-admin/post-new.php | 1,700 ▲17 | 17.78 ▼0.64 | 431.28 ▲24.75 | 118.52 ▲5.08 |
Media Library /wp-admin/upload.php | 1,768 ▼42 | 5.01 ▼0.04 | 154.39 ▼1.10 | 147.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 303 | 48 | 883 |
CSS | 2 | 8 | 0 | 44 |
JavaScript | 1 | 8 | 1 | 16 |
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 code | 0.17 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 1.84 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/popup-mobile-hover.png | 12.15KB | 5.83KB | ▼ 51.99% |
images/popup-mobile.png | 11.63KB | 5.95KB | ▼ 48.88% |
images/ehilapp_icon_16.png | 0.75KB | 0.74KB | ▼ 2.08% |
images/ehilapp.png | 6.60KB | 3.92KB | ▼ 40.64% |
images/closebox.png | 1.39KB | 1.40KB | 0.00% |