Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼12.48ms] Passed 4 tests
Server-side resources used by Easy Javascript Analytics Goals
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 43.96 ▲4.65 |
Dashboard /wp-admin | 3.38 ▲0.03 | 51.58 ▼16.72 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 49.56 ▼6.25 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 84.16 ▼23.81 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.40 ▼3.14 |
Easy JS Analytics Goals /wp-admin/tools.php?page=easy-javascript-analytics-goals | 3.29 | 35.01 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 8 new options
New WordPress options |
---|
ejag_goals |
widget_recent-comments |
widget_theysaidso_widget |
ejag_configured |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Easy Javascript Analytics Goals
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,915 ▲154 | 13.80 ▼0.47 | 9.11 ▲7.51 | 44.01 ▲4.66 |
Dashboard /wp-admin | 2,206 ▲29 | 5.65 ▲0.12 | 84.36 ▼5.09 | 37.93 ▼9.31 |
Posts /wp-admin/edit.php | 2,111 ▲11 | 2.00 ▲0.04 | 36.21 ▼6.36 | 33.24 ▼8.04 |
Add New Post /wp-admin/post-new.php | 1,536 ▲10 | 23.54 ▲0.33 | 651.15 ▲7.08 | 53.88 ▲1.48 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.19 ▲0.03 | 99.15 ▼5.56 | 39.05 ▼8.91 |
Easy JS Analytics Goals /wp-admin/tools.php?page=easy-javascript-analytics-goals | 1,085 | 2.06 | 27.39 | 37.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 8 options
- widget_theysaidso_widget
- ejag_goals
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- ejag_configured
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/easy-javascript-analytics-goals/public/partials/easy-javascript-analytics-goals-public-display.php
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
include_once(ANALYTICS_GOALS_PLUGIN_PATHadmin/includes/inc.php): failed to open stream: No such file or directory in wp-content/plugins/easy-javascript-analytics-goals/admin/class-easy-javascript-analytics-goals-admin.php on line 24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-javascript-analytics-goals/public/class-easy-javascript-analytics-goals-public.php:129
- > PHP Warning
Use of undefined constant ANALYTICS_GOALS_PLUGIN_PATH - assumed 'ANALYTICS_GOALS_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/easy-javascript-analytics-goals/admin/class-easy-javascript-analytics-goals-admin.php on line 24
- > PHP Warning
include_once(): Failed opening 'ANALYTICS_GOALS_PLUGIN_PATHadmin/includes/inc.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/easy-javascript-analytics-goals/admin/class-easy-javascript-analytics-goals-admin.php on line 24
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/easy-javascript-analytics-goals/admin/partials/easy-javascript-analytics-goals-admin-display.php:22
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: goals, analytics, javascript, jquery
easy-javascript-analytics-goals/easy-javascript-analytics-goals.php Passed 13 tests
This is the main PHP file of "Easy Javascript Analytics Goals" version 1.0.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
44 characters long description:
Setup javascript with google analytics goals
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin598 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 151 | 536 | 365 |
JavaScript | 2 | 62 | 27 | 158 |
CSS | 2 | 11 | 4 | 75 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 1.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 28 | |
▷ Static methods | 3 | 10.71% |
▷ Public methods | 23 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.86% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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 images were found in this plugin