Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin cannot be installed
- > Warning in wp-content/plugins/mijireh-checkout-for-ninja-forms/includes/activation.php+5
Use of undefined constant NINJA_FORMS_SUBS_TABLE_NAME - assumed 'NINJA_FORMS_SUBS_TABLE_NAME' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▲0.12MB] [CPU: ▼4.85ms] Passed 4 tests
Server-side resources used by Mijireh Checkout for Ninja Forms
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 41.73 ▼4.33 |
Dashboard /wp-admin | 3.43 ▲0.13 | 49.35 ▼6.40 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 49.96 ▲1.08 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.13 | 88.38 ▼9.76 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 37.83 ▲3.04 |
Mijireh Checkout /wp-admin/admin.php?page=nf-mijireh-patsatech | 3.16 | 30.53 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Mijireh Checkout for Ninja Forms: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 13.20 ▼1.10 | 2.29 ▼0.58 | 44.11 ▼2.11 |
Dashboard /wp-admin | 2,209 ▲18 | 5.89 ▲0.00 | 97.54 ▼4.55 | 39.78 ▼3.02 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 1.99 ▼0.04 | 36.59 ▲2.01 | 34.35 ▼0.06 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.13 ▼0.33 | 657.58 ▼15.63 | 55.45 ▲1.26 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.22 ▲0.03 | 95.43 ▼5.66 | 44.68 ▼0.82 |
Mijireh Checkout /wp-admin/admin.php?page=nf-mijireh-patsatech | 740 | 2.05 | 23.53 | 21.09 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=nf-mijireh-patsatech
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'ninja_forms_admin_css' not found or invalid function name
- > GET request to /wp-admin/admin.php?page=nf-mijireh-patsatech
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'ninja_forms_admin_js' not found or invalid function name
- > GET request to /wp-admin/admin.php?page=nf-mijireh-patsatech
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function 'ninja_forms_admin' not found or invalid function name
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 7× 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/mijireh-checkout-for-ninja-forms/classes/class-mijireh-settings.php:212
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/mijireh-checkout-for-ninja-forms/mijireh.php:22
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/mijireh-checkout-for-ninja-forms/mijireh.php on line 21
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mijireh-checkout-for-ninja-forms/classes/class-mijireh-response.php:197
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mijireh-checkout-for-ninja-forms/classes/class-mijireh-subs.php:189
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mijireh-checkout-for-ninja-forms/classes/class-mijireh-checkout.php:363
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/mijireh-checkout-for-ninja-forms/includes/shortcodes.php:9
- > 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 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add an image for screenshot #1 (Configuration Screen of Mijireh Checkout)
mijireh-checkout-for-ninja-forms/mijireh.php 77% from 13 tests
Analyzing the main PHP file in "Mijireh Checkout for Ninja Forms" version 1.0.0
Please make the necessary changes and fix the following:
- Domain Path: The domain path folder does not exist ("/lang/")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mijireh-checkout-for-ninja-forms.php" instead of "mijireh.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,605 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 345 | 415 | 1,411 |
CSS | 1 | 1 | 1 | 153 |
JavaScript | 1 | 8 | 2 | 41 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 7.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 3.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 31 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 31 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 91 | |
▷ Static methods | 3 | 3.30% |
▷ Public methods | 77 | 84.62% |
▷ Protected methods | 5 | 5.49% |
▷ Private methods | 9 | 9.89% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/mijireh-checkout-logo.png | 55.23KB | 14.35KB | ▼ 74.02% |
assets/images/mijireh.png | 1.82KB | 1.48KB | ▼ 18.71% |
assets/images/credit_cards.png | 4.98KB | 2.14KB | ▼ 57.03% |
assets/images/mijireh-logo.png | 5.66KB | 5.73KB | 0.00% |