Benchmarks
Plugin footprint 65% 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.54MB] [CPU: ▼3.36ms] Passed 4 tests
A check of server-side resources used by Tweaker for Ninja Foms emails
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.05 ▲0.59 | 34.97 ▼5.73 |
Dashboard /wp-admin | 3.89 ▲0.59 | 48.87 ▼2.43 |
Posts /wp-admin/edit.php | 3.94 ▲0.59 | 50.59 ▲4.77 |
Add New Post /wp-admin/post-new.php | 6.43 ▲0.55 | 88.27 ▼10.03 |
Media Library /wp-admin/upload.php | 3.66 ▲0.43 | 38.39 ▲5.91 |
Tweaker for Ninja Forms emails /wp-admin/options-general.php?page=admin-page-tweaker-for-nf-emails | 3.89 | 33.29 |
Freemius Debug [v.2.5.3] /wp-admin/admin.php?page=freemius | 4.01 | 37.45 |
Server storage [IO: ▲3.40MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 186 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
fs_accounts |
theysaidso_admin_options |
db_upgraded |
fs_active_plugins |
fs_gdpr |
fs_debug_mode |
Browser metrics Passed 4 tests
An overview of browser requirements for Tweaker for Ninja Foms emails
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,826 ▲55 | 13.57 ▼1.03 | 1.62 ▼0.43 | 27.01 ▼18.00 |
Dashboard /wp-admin | 2,229 ▲50 | 5.83 ▼0.21 | 112.42 ▼2.34 | 44.36 ▼5.01 |
Posts /wp-admin/edit.php | 2,115 ▲26 | 2.00 ▼0.04 | 40.98 ▲4.66 | 37.91 ▲1.34 |
Add New Post /wp-admin/post-new.php | 1,526 ▼7 | 22.88 ▼0.27 | 622.73 ▲2.94 | 56.94 ▲10.04 |
Media Library /wp-admin/upload.php | 1,408 ▲23 | 4.22 ▲0.04 | 100.67 ▲5.12 | 43.59 ▲1.36 |
Tweaker for Ninja Forms emails /wp-admin/options-general.php?page=admin-page-tweaker-for-nf-emails | 981 | 2.19 | 28.21 | 65.54 |
Freemius Debug [v.2.5.3] /wp-admin/admin.php?page=freemius | 1,086 | 1.72 | 25.02 | 27.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/tweaker-for-nf-emails/freemius/includes/class-freemius.php+8772
Undefined property: stdClass::$plugins
- This plugin did not uninstall successfully, leaving 10 options in the database
- fs_accounts
- widget_recent-posts
- fs_debug_mode
- fs_active_plugins
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- fs_gdpr
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/tweaker-for-nf-emails/templates/admin-page.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 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
6 plugin tags: email enhancer, email alerts, email highlighter, emails tweaker, email layout...
tweaker-for-nf-emails/tweaker-for-nf-emails.php Passed 13 tests
This is the main PHP file of "Tweaker for Ninja Foms emails" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
28 characters long description:
Let's tweak those raw emails
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin33,684 lines of code in 137 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 120 | 8,047 | 17,229 | 33,263 |
Markdown | 1 | 68 | 0 | 214 |
JavaScript | 3 | 34 | 59 | 194 |
CSS | 13 | 0 | 0 | 13 |
PHP code 50% from 2 tests
A short review of cyclomatic complexity and code structure
Please fix the following
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,089)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 88.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,089.00 |
Average method complexity | 4.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 51 | |
▷ Abstract classes | 2 | 3.92% |
▷ Concrete classes | 49 | 96.08% |
▷ Final classes | 0 | 0.00% |
Methods | 1,266 | |
▷ Static methods | 194 | 15.32% |
▷ Public methods | 884 | 69.83% |
▷ Protected methods | 17 | 1.34% |
▷ Private methods | 365 | 28.83% |
Functions | 93 | |
▷ Named functions | 93 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 146 | |
▷ Global constants | 99 | 67.81% |
▷ Class constants | 47 | 32.19% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/tweaker-for-nf-emails.png | 9.16KB | 5.26KB | ▼ 42.58% |