Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼3.59ms] Passed 4 tests
An overview of server-side resources used by PocketGecko Email
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.65 ▲1.42 |
Dashboard /wp-admin | 3.36 ▲0.01 | 48.66 ▼12.22 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 45.63 ▲0.66 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 82.66 ▼4.12 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.82 ▲1.32 |
Email /wp-admin/options-general.php?page=pgem_settings_menu | 3.28 | 32.02 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 14 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
pgem_smtp_encryption_type |
pgem_smtp_username |
pgem_smtp_from_email |
pgem_smtp_host |
pgem_smtp_authentication |
db_upgraded |
pgem_smtp_password |
pgem_smtp_from_name |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PocketGecko Email
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲67 | 14.07 ▼0.33 | 2.04 ▲0.36 | 44.96 ▲3.72 |
Dashboard /wp-admin | 2,204 ▲27 | 5.61 ▲0.04 | 92.30 ▼10.61 | 39.28 ▼1.92 |
Posts /wp-admin/edit.php | 2,106 ▲3 | 1.97 ▼0.00 | 37.63 ▲2.66 | 32.20 ▼0.36 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 23.25 ▲0.28 | 680.73 ▲31.83 | 55.09 ▼8.30 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.16 ▼0.04 | 98.48 ▼3.46 | 44.27 ▲1.24 |
Email /wp-admin/options-general.php?page=pgem_settings_menu | 1,057 | 2.04 | 22.37 | 31.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. Unsupported value type (object). Please see Debugging in WordPress for more information. (This message was added in version 4.8.2.)
- The uninstall procedure has failed, leaving 14 options in the database
- pgem_smtp_host
- widget_theysaidso_widget
- db_upgraded
- pgem_smtp_encryption_type
- pgem_smtp_password
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- pgem_smtp_port
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Notice
Undefined variable: title in wp-content/plugins/pocketgecko-email/includes/templates/email-form.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pocketgecko-email/includes/scripts.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pocketgecko-email/includes/email.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/pocketgecko-email/includes/templates/email-options.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/pocketgecko-email/includes/templates/email-test.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/pocketgecko-email/includes/templates/email-form.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/pocketgecko-email/includes/shortcode.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pocketgecko-email/pocketgecko-email-admin.php:3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
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
6 plugin tags: ajax, email, post, smtp, settings...
pocketgecko-email/pocketgecko-email.php 77% from 13 tests
Analyzing the main PHP file in "PocketGecko Email" version 1.0.0
You should first fix the following items:
- Domain Path: The domain path is invalid: folder "/i18n/languages" does not exist
- Requires PHP: Required version number should use periods and dots only (ex. "7.0" instead of "")
- Requires at least: Required version number should use periods and dots only (ex. "7.0" instead of "")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin568 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 171 | 64 | 567 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
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 | 28 | |
▷ Named functions | 25 | 89.29% |
▷ Anonymous functions | 3 | 10.71% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin