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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.32MB] [CPU: ▼2.79ms] Passed 4 tests
Analyzing server-side resources used by GoDaddy Email Marketing
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.32 | 56.54 ▲11.59 |
Dashboard /wp-admin | 3.63 ▲0.32 | 55.11 ▼0.92 |
Posts /wp-admin/edit.php | 3.74 ▲0.39 | 56.47 ▲3.62 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.32 | 90.84 ▼21.08 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 42.38 ▲7.21 |
GoDaddy Email Marketing /wp-admin/options-general.php?page=gem-settings | 3.53 | 42.18 |
Server storage [IO: ▲0.45MB] [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: 61 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
gem-settings |
can_compress_scripts |
theysaidso_admin_options |
widget_gem-form |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by GoDaddy Email Marketing
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,879 ▲118 | 13.78 ▼0.57 | 9.31 ▲7.43 | 39.34 ▼6.91 |
Dashboard /wp-admin | 2,199 ▲22 | 5.63 ▼0.00 | 92.16 ▼0.04 | 38.34 ▼3.30 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▼0.02 | 38.03 ▲0.73 | 36.10 ▼1.23 |
Add New Post /wp-admin/post-new.php | 6,198 ▲4,670 | 19.52 ▼3.79 | 932.49 ▲286.41 | 63.84 ▲23.65 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.18 ▼0.02 | 94.64 ▼0.98 | 44.60 ▼0.92 |
GoDaddy Email Marketing /wp-admin/options-general.php?page=gem-settings | 1,020 | 2.18 | 33.56 | 52.49 |
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 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_gem-form
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
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
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/godaddy-email-marketing-sign-up-forms/includes/widget.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/godaddy-email-marketing-sign-up-forms/godaddy-email-marketing.php:313
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=gem-settings
- > Other (severe) in unknown
chrome-error://chromewebdata/ - Refused to display 'https://uk.godaddy.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Tags: You are using too many tags: 11 tag instead of maximum 10
godaddy-email-marketing-sign-up-forms/godaddy-email-marketing.php 85% from 13 tests
"GoDaddy Email Marketing" version 1.4.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 154 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("godaddy-email-marketing-sign-up-forms.php" instead of "godaddy-email-marketing.php")
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
No dangerous file extensions were detected1,869 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 437 | 652 | 1,368 |
JavaScript | 11 | 111 | 138 | 327 |
CSS | 6 | 38 | 13 | 172 |
SVG | 2 | 0 | 0 | 2 |
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.34 |
Average class complexity | 22.78 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 80.00 |
Average method complexity | 3.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 1 | 11.11% |
Methods | 70 | |
▷ Static methods | 30 | 42.86% |
▷ Public methods | 65 | 92.86% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 7.14% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 4 | 66.67% |
▷ Class constants | 2 | 33.33% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin