Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼12.53ms] Passed 4 tests
Server-side resources used by CharityeMail Sign Up Widget
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.71 ▼2.49 |
Dashboard /wp-admin | 3.34 ▼0.01 | 44.53 ▼16.86 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.40 ▼3.28 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 88.14 ▼27.50 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.87 ▲2.46 |
CharityeMail Sign Up Widget /wp-admin/options-general.php?page=charityemail | 3.73 | 37.51 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 10 new options
New WordPress options |
---|
charityemail_username |
db_upgraded |
charityemail_password |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
charityemail_datafields |
widget_recent-comments |
charityemail_address_book |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for CharityeMail Sign Up Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,874 ▲113 | 13.38 ▼1.15 | 8.76 ▲6.97 | 42.65 ▲2.03 |
Dashboard /wp-admin | 2,202 ▲22 | 5.63 ▼0.03 | 88.76 ▲3.29 | 40.46 ▼1.06 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▲0.02 | 38.75 ▲0.75 | 35.70 ▲1.82 |
Add New Post /wp-admin/post-new.php | 1,529 ▼6 | 23.14 ▲4.99 | 643.18 ▲22.19 | 53.24 ▼23.42 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.19 ▼0.03 | 98.56 ▲3.27 | 43.40 ▲2.72 |
CharityeMail Sign Up Widget /wp-admin/options-general.php?page=charityemail | 1,120 | 2.04 | 26.08 | 40.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to a member function GetContactByEmail() on null in wp-content/plugins/charityemail-sign-up-widget/DotMailerConnect.php:105
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/charityemail-sign-up-widget/charityemail-sign-up-widget.php:61
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
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
2 plugin tags: email marketing, newsletter sign-up
charityemail-sign-up-widget/charityemail-sign-up-widget.php 92% from 13 tests
The main PHP script in "CharityeMail Sign Up Widget" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 194 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin346 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 120 | 31 | 332 |
JavaScript | 1 | 6 | 3 | 14 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 2.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin