Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/segment-for-wp-by-in8-io/includes/class-segment-for-wp-by-in8-io.php+197
Trying to access array offset on value of type bool
Server metrics [RAM: ▼0.47MB] [CPU: ▼171.82ms] Passed 4 tests
Analyzing server-side resources used by Segment For Wordpress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.17 ▲0.33 | 10.82 ▼11.08 |
Dashboard /wp-admin | 3.18 ▲0.12 | 14.17 ▼22.48 |
Posts /wp-admin/edit.php | 3.19 ▲0.07 | 11.14 ▼19.42 |
Add New Post /wp-admin/post-new.php | 3.19 ▼2.26 | 11.18 ▼632.53 |
Media Library /wp-admin/upload.php | 3.19 ▲0.18 | 10.38 ▼12.85 |
Segment for WP /wp-admin/options-general.php?page=segment-for-wp-by-in8-io | 3.19 | 10.16 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 3.19 | 12.24 |
Server storage [IO: ▲13.77MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 728 new files
Database: 5 new tables, 4 new options
New tables |
---|
wp_actionscheduler_actions |
wp_segment_4_wp |
wp_actionscheduler_logs |
wp_actionscheduler_claims |
wp_actionscheduler_groups |
New WordPress options |
---|
action_scheduler_hybrid_store_demarkation |
action_scheduler_lock_async-request-runner |
schema-ActionScheduler_LoggerSchema |
schema-ActionScheduler_StoreSchema |
Browser metrics Passed 4 tests
An overview of browser requirements for Segment For Wordpress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,801 ▲200 | 16.82 ▲0.78 | 8.53 ▲2.98 | 76.42 ▼1.90 |
Dashboard /wp-admin | 2,941 ▲45 | 6.00 ▼0.14 | 112.69 ▼30.98 | 165.40 ▼18.33 |
Posts /wp-admin/edit.php | 2,749 ▲12 | 3.24 ▲0.01 | 63.60 ▼0.91 | 136.45 ▼9.59 |
Add New Post /wp-admin/post-new.php | 3,749 ▲42 | 18.97 ▲0.19 | 420.82 ▼9.98 | 163.03 ▲5.40 |
Media Library /wp-admin/upload.php | 1,761 ▲12 | 5.50 ▼0.05 | 140.79 ▼0.28 | 187.29 ▲1.91 |
Segment for WP /wp-admin/options-general.php?page=segment-for-wp-by-in8-io | 2,157 | 3.25 | 73.38 | 157.29 |
Scheduled Actions /wp-admin/tools.php?page=action-scheduler | 1,580 | 2.56 | 55.43 | 111.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 25% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/segment-for-wp-by-in8-io/includes/class-segment-for-wp-by-in8-io.php+197
Trying to access array offset on value of type bool
- The uninstall procedure failed, leaving 4 tables in the database
- wp_actionscheduler_logs
- wp_actionscheduler_groups
- wp_actionscheduler_actions
- wp_actionscheduler_claims
- This plugin did not uninstall successfully, leaving 4 options in the database
- schema-ActionScheduler_StoreSchema
- action_scheduler_lock_async-request-runner
- schema-ActionScheduler_LoggerSchema
- action_scheduler_hybrid_store_demarkation
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)
These errors were triggered by the plugin
- 6 occurences, only the last one shown
- > GET request to /wp-admin/tools.php?page=action-scheduler
- > Notice in wp-content/plugins/segment-for-wp-by-in8-io/includes/class-segment-for-wp-by-in8-io.php+197
Trying to access array offset on value of type bool
SRP 0% 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
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/segment-for-wp-by-in8-io/public/partials/segment-for-wp-by-in8-io-public-display.php
- > /wp-content/plugins/segment-for-wp-by-in8-io/admin/partials/segment-for-wp-by-in8-io-admin-display.php
- 85× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_UnitTestCase' not found in wp-content/plugins/segment-for-wp-by-in8-io/includes/action-scheduler/tests/phpunit/jobstore/AbstractStoreTest.php:18
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_SimpleSchedule' not found in wp-content/plugins/segment-for-wp-by-in8-io/includes/action-scheduler/classes/schedules/ActionScheduler_NullSchedule.php:6
- > PHP Fatal error
Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/segment-for-wp-by-in8-io/includes/action-scheduler/lib/cron-expression/CronExpression_HoursField.php:8
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Abstract_QueueRunner' not found in wp-content/plugins/segment-for-wp-by-in8-io/includes/action-scheduler/classes/ActionScheduler_QueueRunner.php:6
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/segment-for-wp-by-in8-io/includes/segment_php/test/AnalyticsTest.php:5
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Abstract_RecurringSchedule' not found in wp-content/plugins/segment-for-wp-by-in8-io/includes/action-scheduler/classes/schedules/ActionScheduler_CronSchedule.php:6
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_Abstract_ListTable' not found in wp-content/plugins/segment-for-wp-by-in8-io/includes/action-scheduler/classes/ActionScheduler_ListTable.php:7
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_UnitTestCase' not found in wp-content/plugins/segment-for-wp-by-in8-io/includes/action-scheduler/tests/phpunit/migration/Runner_Test.php:13
- > PHP Fatal error
Uncaught Error: Class 'ActionScheduler_UnitTestCase' not found in wp-content/plugins/segment-for-wp-by-in8-io/includes/action-scheduler/tests/phpunit/logging/ActionScheduler_DBLogger_Test.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/segment-for-wp-by-in8-io/includes/action-scheduler/tests/ActionScheduler_UnitTestCase.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: segment, tracking, analytics
segment-for-wp-by-in8-io/segment-for-wp-by-in8-io.php Passed 13 tests
The main PHP script in "Segment For Wordpress" version 2.3.0 is automatically included on every request by WordPress
31 characters long description:
Segment Analytics for WordPress
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
Good job! No executable or dangerous file extensions detected140,770 lines of code in 672 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 428 | 2,633 | 13,306 | 91,251 |
PHP | 188 | 5,419 | 7,647 | 20,494 |
JSON | 6 | 0 | 0 | 19,057 |
CSS | 15 | 1,202 | 300 | 5,417 |
SVG | 3 | 0 | 0 | 2,917 |
Markdown | 15 | 473 | 0 | 1,080 |
XML | 5 | 12 | 8 | 151 |
Bourne Shell | 3 | 26 | 15 | 143 |
YAML | 5 | 14 | 5 | 111 |
HTML | 2 | 8 | 0 | 70 |
Sass | 1 | 10 | 0 | 47 |
make | 1 | 8 | 0 | 32 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 15.04 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 397.00 |
Average method complexity | 3.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 92.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 3 | |
Traits | 0 | |
Classes | 172 | |
▷ Abstract classes | 19 | 11.05% |
▷ Concrete classes | 153 | 88.95% |
▷ Final classes | 0 | 0.00% |
Methods | 1,199 | |
▷ Static methods | 149 | 12.43% |
▷ Public methods | 1,003 | 83.65% |
▷ Protected methods | 158 | 13.18% |
▷ Private methods | 38 | 3.17% |
Functions | 45 | |
▷ Named functions | 22 | 48.89% |
▷ Anonymous functions | 23 | 51.11% |
Constants | 36 | |
▷ Global constants | 3 | 8.33% |
▷ Class constants | 33 | 91.67% |
▷ Public constants | 33 | 100.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
23 compressed PNG files occupy 0.11MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/exopite-simple-options/assets/images/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
includes/action-scheduler/docs/android-chrome-256x256.png | 2.93KB | 3.03KB | 0.00% |
includes/action-scheduler/docs/favicon-32x32.png | 1.16KB | 0.71KB | ▼ 39.02% |
admin/exopite-simple-options/assets/images/ui-icons_bf3030_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
admin/exopite-simple-options/assets/images/ui-bg_glass_25_e1f0f5_1x400.png | 0.11KB | 0.11KB | 0.00% |