Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼10.37ms] Passed 4 tests
Server-side resources used by click5 CRM add-on to Ninja Forms
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 34.99 ▼4.19 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.60 ▼3.89 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 49.01 ▲2.19 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 81.82 ▼29.88 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 35.71 ▼3.51 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by click5 CRM add-on to Ninja Forms
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.25 ▼1.11 | 4.92 ▲2.92 | 40.56 ▼4.49 |
Dashboard /wp-admin | 2,209 ▲30 | 5.91 ▲0.11 | 96.22 ▼8.97 | 40.76 ▼2.60 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.06 ▲0.08 | 36.29 ▲0.84 | 32.10 ▼2.34 |
Add New Post /wp-admin/post-new.php | 1,520 ▼13 | 23.11 ▼0.03 | 660.64 ▲11.42 | 64.22 ▲12.58 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.21 ▼0.09 | 99.84 ▼17.66 | 43.21 ▼2.13 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/click5-crm-add-on-to-ninja-forms/api.php:304
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/click5-crm-add-on-to-ninja-forms/api.php:304
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: form, contact, contact form, click5, crm
click5-crm-add-on-to-ninja-forms/ninja-addon-by-click5.php 92% from 13 tests
The main PHP script in "click5 CRM add-on to Ninja Forms" version 1.0.1 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("click5-crm-add-on-to-ninja-forms.php" instead of "ninja-addon-by-click5.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 plugin2,426 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 131 | 18 | 928 |
PHP | 3 | 169 | 38 | 851 |
CSS | 1 | 114 | 24 | 572 |
XML | 3 | 0 | 0 | 58 |
JSON | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.48 |
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 | 36 | |
▷ Named functions | 34 | 94.44% |
▷ Anonymous functions | 2 | 5.56% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 58.90KB | 23.23KB | ▼ 60.56% |
assets/banner-1544x500.png | 71.54KB | 34.55KB | ▼ 51.70% |