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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.23MB] [CPU: ▼4.15ms] Passed 4 tests
This is a short check of server-side resources used by Get a Newsletter
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 39.28 ▼1.10 |
Dashboard /wp-admin | 3.53 ▲0.23 | 47.89 ▲4.66 |
Posts /wp-admin/edit.php | 3.64 ▲0.29 | 48.53 ▼3.27 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.23 | 87.78 ▼14.32 |
Media Library /wp-admin/upload.php | 3.45 ▲0.23 | 35.99 ▲2.10 |
Settings /wp-admin/admin.php?page=newsletter | 3.42 | 32.68 |
Subscription forms /wp-admin/admin.php?page=newsletter_subscription_forms | 3.42 | 34.16 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 10 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
newsletter_plugin_version |
widget_theysaidso_widget |
widget_recent-posts |
newsletter_default_verify_mail_subject |
newsletter_default_verify_mail_text |
widget_getanewsletter |
Browser metrics Passed 4 tests
A check of browser resources used by Get a Newsletter
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,911 ▲140 | 13.64 ▼0.64 | 5.26 ▲3.29 | 44.76 ▼4.46 |
Dashboard /wp-admin | 2,238 ▲59 | 4.87 ▼0.98 | 103.30 ▼2.47 | 41.05 ▲0.32 |
Posts /wp-admin/edit.php | 2,119 ▲33 | 2.02 ▼0.02 | 40.09 ▲0.45 | 35.59 ▼1.11 |
Add New Post /wp-admin/post-new.php | 1,436 ▼97 | 18.12 ▼5.14 | 609.78 ▼52.52 | 55.12 ▲3.53 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 4.23 ▲0.04 | 99.05 ▼6.06 | 42.41 ▼2.35 |
Settings /wp-admin/admin.php?page=newsletter | 824 | 1.84 | 25.97 | 27.37 |
Subscription forms /wp-admin/admin.php?page=newsletter_subscription_forms | 824 | 1.73 | 24.58 | 25.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin did not uninstall successfully, leaving 10 options in the database
- newsletter_default_verify_mail_subject
- newsletter_plugin_version
- widget_recent-posts
- newsletter_default_verify_mail_text
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_getanewsletter
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
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
Please fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/getanewsletter/getanewsletter.php:20
- > PHP Notice
Undefined index: HTTP_REFERER in wp-content/plugins/getanewsletter/subscribe.php on line 6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
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
4 plugin tags: email, subscription, newsletter, marketing
getanewsletter/getanewsletter.php Passed 13 tests
The main PHP file in "Get a Newsletter" ver. 3.0.4 adds more information about the plugin and also serves as the entry point for this plugin
58 characters long description:
Plugin to add subscription form to the site using widgets.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,500 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 243 | 445 | 1,500 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 31.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 58.00 |
Average method complexity | 3.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 40 | |
▷ Static methods | 2 | 5.00% |
▷ Public methods | 35 | 87.50% |
▷ Protected methods | 3 | 7.50% |
▷ Private methods | 2 | 5.00% |
Functions | 34 | |
▷ Named functions | 30 | 88.24% |
▷ Anonymous functions | 4 | 11.76% |
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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected