Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.17MB] [CPU: ▲385.68ms] 75% from 4 tests
Server-side resources used by Walnut.Marketing Portal
It is recommended to improve the following
- Extra CPU: Extra CPU usage must be kept under 200.00ms (currently 385.68ms on /wp-admin/options-general.php?page=walnut_options)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 44.37 ▲2.81 |
Dashboard /wp-admin | 3.43 ▲0.13 | 638.79 ▲592.93 |
Posts /wp-admin/edit.php | 3.48 ▲0.13 | 606.94 ▲557.18 |
Add New Post /wp-admin/post-new.php | 4.94 ▼0.94 | 554.83 ▲454.24 |
Media Library /wp-admin/upload.php | 3.29 ▲0.07 | 564.51 ▲528.50 |
Walnut Marketing /wp-admin/options-general.php?page=walnut_options | 3.26 | 433.47 |
Server storage [IO: ▲0.19MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
walnut_version |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Walnut.Marketing Portal
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,216 ▲481 | 15.83 ▲1.25 | 46.48 ▲44.65 | 44.66 ▲0.47 |
Dashboard /wp-admin | 2,221 ▲36 | 4.97 ▼0.85 | 99.52 ▼1.65 | 51.48 ▲8.37 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.19 ▲0.17 | 37.22 ▼2.77 | 32.68 ▼6.05 |
Add New Post /wp-admin/post-new.php | 6,235 ▲4,693 | 26.39 ▲8.17 | 954.88 ▲353.45 | 40.67 ▼9.21 |
Media Library /wp-admin/upload.php | 1,400 ▲15 | 4.21 ▲0.06 | 100.70 ▲2.55 | 43.47 ▲0.05 |
Walnut Marketing /wp-admin/options-general.php?page=walnut_options | 901 | 1.74 | 24.94 | 24.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- walnut_version
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function WalnutMarketing\\add_action() in wp-content/plugins/walnutmarketing/landing-pages.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function WalnutMarketing\\plugin_dir_path() in wp-content/plugins/walnutmarketing/WalnutMarketing.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/walnutmarketing/partials/tinymce-editor.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function WalnutMarketing\\add_shortcode() in wp-content/plugins/walnutmarketing/class-SCCollector.php:114
- > PHP Fatal error
Uncaught Error: Call to undefined function WalnutMarketing\\add_action() in wp-content/plugins/walnutmarketing/linked-forms.php:361
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Add a description for screenshot #2 in walnutmarketing/assets to your readme.txt
walnutmarketing/WalnutMarketing.php 92% from 13 tests
The main PHP script in "Walnut.Marketing Portal" version 0.2.05 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("walnutmarketing.php" instead of "WalnutMarketing.php")
Code Analysis Passed 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
Good job! No executable or dangerous file extensions detected2,715 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 385 | 121 | 1,695 |
XML | 4 | 0 | 0 | 776 |
JavaScript | 8 | 37 | 18 | 243 |
CSS | 1 | 0 | 7 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 36.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 2.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 9 | 36.00% |
▷ Public methods | 23 | 92.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 8.00% |
Functions | 66 | |
▷ Named functions | 61 | 92.42% |
▷ Anonymous functions | 5 | 7.58% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/Screenshot3.png | 15.19KB | 5.80KB | ▼ 61.85% |
images/ActiveDEMAND-Transparent.png | 7.58KB | 3.97KB | ▼ 47.61% |
includes/icons/favicon.png | 3.34KB | 2.27KB | ▼ 32.03% |
images/favicon.png | 3.75KB | 2.94KB | ▼ 21.64% |
images/Screenshot2.png | 21.57KB | 8.23KB | ▼ 61.84% |