Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.00ms] Passed 4 tests
An overview of server-side resources used by Permissions Editor for Ninja Forms
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 39.06 ▼7.11 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.22 ▼4.27 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.86 ▲4.81 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 86.74 ▼12.67 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.82 ▼3.93 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Permissions Editor for Ninja Forms: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.72 ▲0.37 | 1.89 ▲0.17 | 41.56 ▼3.50 |
Dashboard /wp-admin | 2,192 ▲12 | 5.51 ▼0.13 | 87.63 ▼13.96 | 39.08 ▼4.59 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.96 ▼0.07 | 36.08 ▼7.26 | 35.33 ▼3.94 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 23.18 ▼0.10 | 654.48 ▲34.23 | 53.37 ▲2.35 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.24 ▲0.06 | 100.24 ▼8.88 | 44.31 ▲0.80 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
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
Even though everything seems fine, this is not an exhaustive test
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
Please take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/permissions-editor-for-ninja-forms/permissions-editor-for-ninja_forms.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/permissions-editor-for-ninja-forms/penf_role_matrix.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% 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
These attributes need your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== permissions-editor-for-ninja-forms ===
)
permissions-editor-for-ninja-forms/permissions-editor-for-ninja_forms.php 92% from 13 tests
Analyzing the main PHP file in "Permissions Editor for Ninja Forms" version 1.2.1
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("permissions-editor-for-ninja-forms.php" instead of "permissions-editor-for-ninja_forms.php")
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
There were no executable files found in this plugin178 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 46 | 12 | 175 |
Markdown | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
There are no PNG files in this plugin