Benchmarks
Plugin footprint 83% 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.15MB] [CPU: ▼19.66ms] Passed 4 tests
Analyzing server-side resources used by Earnware Connect
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 23.13 ▼19.97 |
Dashboard /wp-admin | 3.46 ▲0.12 | 46.82 ▼10.63 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 45.66 ▼8.49 |
Add New Post /wp-admin/post-new.php | 6.06 ▲0.18 | 88.61 ▼39.53 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 37.37 ▲1.33 |
Earnware Connect /wp-admin/options-general.php?page=wp-ew | 3.41 | 30.86 |
Server storage [IO: ▲0.10MB] [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: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Earnware Connect
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,899 ▲164 | 13.61 ▼0.77 | 8.87 ▲7.01 | 41.24 ▼3.62 |
Dashboard /wp-admin | 2,217 ▲29 | 4.86 ▼1.02 | 109.83 ▲7.11 | 38.97 ▼4.80 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.00 ▼0.03 | 39.69 ▲0.17 | 34.80 ▼1.82 |
Add New Post /wp-admin/post-new.php | 1,525 ▲6 | 23.19 ▲0.13 | 600.33 ▼51.47 | 54.95 ▲4.31 |
Media Library /wp-admin/upload.php | 1,399 ▲17 | 4.22 ▼0.03 | 96.24 ▼2.93 | 42.66 ▼2.03 |
Earnware Connect /wp-admin/options-general.php?page=wp-ew | 1,380 | 2.21 | 34.73 | 132.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- 13 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp-ew
- > Notice in wp-content/plugins/earnware-connect/admin/partials/wp-ew-admin-display.php+58
Trying to access array offset on value of type bool
SRP 0% 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 take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/earnware-connect/public/partials/wp-ew-public-display.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/earnware-connect/admin/partials/wp-ew-admin-display.php:44
- > 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 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: esp, contacts, earnware, crm, email
earnware-connect/wp-ew.php 85% from 13 tests
The primary PHP file in "Earnware Connect" version 1.0.72 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("earnware-connect.php" instead of "wp-ew.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,483 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 251 | 561 | 1,084 |
CSS | 2 | 0 | 10 | 204 |
JavaScript | 5 | 41 | 86 | 195 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 83.00 |
Average method complexity | 3.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 2 | 5.26% |
▷ Public methods | 33 | 86.84% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 13.16% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected