Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼5.39ms] Passed 4 tests
An overview of server-side resources used by Banana Newsletters
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 42.05 ▲4.64 |
Dashboard /wp-admin | 3.36 ▲0.06 | 48.01 ▼1.60 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 45.12 ▼3.67 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 82.90 ▼17.03 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 35.33 ▲0.76 |
All newsletters /wp-admin/edit.php?post_type=newsletter | 3.33 | 37.19 |
Add New /wp-admin/post-new.php?post_type=subscriber | 3.32 | 42.10 |
Newsletters /wp-admin/options-general.php?page=newsletters-settings | 3.25 | 31.77 |
Add New /wp-admin/post-new.php?post_type=newsletter | 3.32 | 42.09 |
All subscribers /wp-admin/edit.php?post_type=subscriber | 3.33 | 35.34 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Banana Newsletters
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,878 ▲143 | 13.41 ▼0.95 | 4.24 ▲2.42 | 43.41 ▼0.76 |
Dashboard /wp-admin | 2,278 ▲87 | 4.84 ▼0.04 | 114.52 ▼0.51 | 41.90 ▲0.09 |
Posts /wp-admin/edit.php | 2,161 ▲72 | 2.05 ▲0.09 | 40.18 ▲1.79 | 33.41 ▲1.56 |
Add New Post /wp-admin/post-new.php | 1,575 ▲52 | 23.22 ▲0.05 | 691.45 ▲12.11 | 56.11 ▼1.94 |
Media Library /wp-admin/upload.php | 1,463 ▲72 | 4.21 ▲0.04 | 94.42 ▼10.85 | 41.62 ▼4.94 |
All newsletters /wp-admin/edit.php?post_type=newsletter | 1,125 | 1.99 | 33.16 | 30.38 |
Add New /wp-admin/post-new.php?post_type=subscriber | 1,514 | 2.50 | 51.37 | 47.22 |
Newsletters /wp-admin/options-general.php?page=newsletters-settings | 926 | 2.05 | 23.66 | 31.14 |
Add New /wp-admin/post-new.php?post_type=newsletter | 1,532 | 2.58 | 51.64 | 48.76 |
All subscribers /wp-admin/edit.php?post_type=subscriber | 1,125 | 1.97 | 32.70 | 29.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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
Please take a closer look at the following
- 13× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function banana\ewsletters\\plugin_dir_path() in wp-content/plugins/banana-newsletters/newsletters.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function banana\ewsletters\\add_action() in wp-content/plugins/banana-newsletters/includes/enqueue-custom-admin-style.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function banana\ewsletters\\add_action() in wp-content/plugins/banana-newsletters/includes/admin-settings-page.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function banana\ewsletters\\register_activation_hook() in wp-content/plugins/banana-newsletters/includes/plugin-activation.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function banana\ewsletters\\add_shortcode() in wp-content/plugins/banana-newsletters/includes/shortcode-subscribe-form.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function banana\ewsletters\\add_action() in wp-content/plugins/banana-newsletters/includes/page-send-newsletter.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function banana\ewsletters\\add_action() in wp-content/plugins/banana-newsletters/includes/handle-subscribe-user.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function banana\ewsletters\\register_deactivation_hook() in wp-content/plugins/banana-newsletters/includes/plugin-deactivation.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function banana\ewsletters\\add_action() in wp-content/plugins/banana-newsletters/includes/cpt-newsletter.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function banana\ewsletters\\add_action() in wp-content/plugins/banana-newsletters/includes/cpt-subscriber.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
1 plugin tags: newsletters
banana-newsletters/newsletters.php 77% from 13 tests
The entry point to "Banana Newsletters" version 2.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Domain Path: The domain path points to a folder that does not exist ("/languages")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("banana-newsletters.php" instead of "newsletters.php")
- Description: Keep the plugin description shorter than 140 characters (currently 162 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected658 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 57 | 65 | 620 |
CSS | 1 | 9 | 2 | 38 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
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 | 1 | |
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 | 25 | |
▷ Named functions | 25 | 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
PNG images were not found in this plugin