Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▲0.29ms] Passed 4 tests
Server-side resources used by WCF Newsletter & Email Campaign
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.41 ▼3.41 |
Dashboard /wp-admin | 3.32 ▲0.02 | 54.93 ▲8.18 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.89 ▼1.43 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 95.78 ▲5.20 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.25 ▲0.78 |
WCF Newsletter & Campaign /wp-admin/admin.php?page=wcf-newsletter-email-campaign | 3.27 | 34.60 |
Campaigns /wp-admin/admin.php?page=wcf-campaigns-list | 3.24 | 32.91 |
Subscriber List /wp-admin/admin.php?page=wcf-newsletter-subscriber | 3.24 | 28.17 |
Server storage [IO: ▲0.76MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_wcf_camp_list |
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WCF Newsletter & Email Campaign
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲179 | 13.44 ▼0.94 | 1.78 ▼0.23 | 41.18 ▼4.13 |
Dashboard /wp-admin | 2,289 ▲98 | 5.41 ▲0.53 | 119.57 ▲20.35 | 39.97 ▼1.74 |
Posts /wp-admin/edit.php | 2,143 ▲54 | 2.31 ▲0.27 | 42.80 ▲6.15 | 29.52 ▼5.74 |
Add New Post /wp-admin/post-new.php | 1,575 ▲56 | 23.34 ▲0.04 | 566.10 ▼95.94 | 28.44 ▼34.15 |
Media Library /wp-admin/upload.php | 1,537 ▲146 | 4.64 ▲0.41 | 101.24 ▼10.33 | 37.93 ▼6.90 |
WCF Newsletter & Campaign /wp-admin/admin.php?page=wcf-newsletter-email-campaign | 1,636 | 7.09 | 129.25 | 51.99 |
Campaigns /wp-admin/admin.php?page=wcf-campaigns-list | 977 | 2.38 | 53.93 | 27.70 |
Subscriber List /wp-admin/admin.php?page=wcf-newsletter-subscriber | 967 | 2.81 | 48.02 | 24.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie tables detected upon uninstall: 1 table
- wp_wcf_camp_list
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to a member function get_charset_collate() on null in wp-content/plugins/wcf-newsletter-email-campaign/campaign_list.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_users() in wp-content/plugins/wcf-newsletter-email-campaign/subscribers_list.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_editor() in wp-content/plugins/wcf-newsletter-email-campaign/welcome_wcf_newsletter_campaign.php:39
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wcf-newsletter-email-campaign/wcf_newsletter_email_campaign.php:15
- > 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
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: woocommerce
wcf-newsletter-email-campaign/wcf_newsletter_email_campaign.php 92% from 13 tests
"WCF Newsletter & Email Campaign" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wcf-newsletter-email-campaign.php" instead of "wcf_newsletter_email_campaign.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin7,499 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 2,044 | 6,885 | 6,663 |
CSS | 2 | 8 | 36 | 541 |
PHP | 4 | 95 | 26 | 295 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
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 | 10 | |
▷ Named functions | 10 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin