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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.14MB] [CPU: ▼6.23ms] Passed 4 tests
A check of server-side resources used by Popup addon for Ninja Forms
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 41.92 ▼0.92 |
Dashboard /wp-admin | 3.44 ▲0.13 | 48.61 ▲1.17 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 45.71 ▼7.56 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.16 | 90.02 ▼17.62 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 35.66 ▲1.19 |
Add New /wp-admin/post-new.php?post_type=nf-popups | 3.40 | 43.04 |
Licenses /wp-admin/edit.php?post_type=nf-popups&page=nf_popups_licenses | 3.33 | 32.26 |
NF Popups /wp-admin/edit.php?post_type=nf-popups | 3.40 | 35.28 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
nf_popups_licenses |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Popup addon for Ninja Forms
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,933 ▲198 | 13.59 ▼0.70 | 6.83 ▲5.00 | 43.69 ▲1.24 |
Dashboard /wp-admin | 2,248 ▲63 | 5.85 ▲0.04 | 99.03 ▼1.02 | 38.75 ▼6.88 |
Posts /wp-admin/edit.php | 2,130 ▲41 | 2.03 ▼0.11 | 35.92 ▼4.93 | 34.91 ▼0.27 |
Add New Post /wp-admin/post-new.php | 1,565 ▲42 | 23.19 ▼0.07 | 663.59 ▲60.32 | 62.70 ▲14.77 |
Media Library /wp-admin/upload.php | 1,430 ▲42 | 4.31 ▲0.15 | 96.12 ▼3.00 | 41.41 ▼6.46 |
Add New /wp-admin/post-new.php?post_type=nf-popups | 1,570 | 2.55 | 49.88 | 52.66 |
Licenses /wp-admin/edit.php?post_type=nf-popups&page=nf_popups_licenses | 810 | 1.71 | 24.61 | 27.68 |
NF Popups /wp-admin/edit.php?post_type=nf-popups | 1,091 | 1.98 | 30.80 | 29.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- nf_popups_licenses
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
Please take a closer look at the following
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/popup-addon-for-ninja-forms/inc/admin/class-nf-popups-customizer.php:253
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/popup-addon-for-ninja-forms/inc/admin/class-nf-popups-postype.php:5
- > PHP Fatal error
Uncaught Error: Class 'NF_Popups_Customizer' not found in wp-content/plugins/popup-addon-for-ninja-forms/inc/admin/views/html-popup-template-preview.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/popup-addon-for-ninja-forms/inc/admin/class-nf-popups-settings-metabox.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/popup-addon-for-ninja-forms/inc/admin/class-nf-popups-licenses.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 13 tag instead of maximum 10
popup-addon-for-ninja-forms/nf-popups.php 85% from 13 tests
Analyzing the main PHP file in "Popup addon for Ninja Forms" version 3.4
Please make the necessary changes and fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: It is recommended to name the main PHP file as the plugin slug ("popup-addon-for-ninja-forms.php" instead of "nf-popups.php")
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
Good job! No executable or dangerous file extensions detected1,682 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 194 | 182 | 1,009 |
CSS | 3 | 70 | 13 | 465 |
JavaScript | 4 | 18 | 20 | 208 |
PHP code Passed 2 tests
This is a very shot 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 code | 0.20 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 5 | 12.20% |
▷ Public methods | 37 | 90.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 9.76% |
Functions | 3 | |
▷ Named functions | 3 | 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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/active.png | 1.63KB | 1.34KB | ▼ 17.74% |
images/inactive.png | 1.58KB | 1.32KB | ▼ 16.60% |