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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.06MB] [CPU: ▼10.68ms] Passed 4 tests
An overview of server-side resources used by SegMetrics Marketing Analytics
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 41.99 ▼1.94 |
Dashboard /wp-admin | 3.37 ▲0.03 | 49.87 ▼13.07 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 48.14 ▼3.20 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 86.20 ▼24.51 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.13 ▲0.64 |
SegMetrics /wp-admin/options-general.php?page=segmetrics_settings | 3.26 | 31.52 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for SegMetrics Marketing Analytics
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.10 ▼0.25 | 1.86 ▼0.06 | 42.43 ▼0.73 |
Dashboard /wp-admin | 2,204 ▲30 | 5.56 ▼0.11 | 91.78 ▼1.05 | 39.86 ▼2.85 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.01 ▲0.04 | 35.42 ▼4.21 | 32.85 ▼6.85 |
Add New Post /wp-admin/post-new.php | 1,533 ▲5 | 23.65 ▲0.52 | 708.42 ▲47.85 | 57.25 ▲0.25 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.20 ▲0.08 | 102.47 ▼4.23 | 50.74 ▲0.74 |
SegMetrics /wp-admin/options-general.php?page=segmetrics_settings | 865 | 1.99 | 23.98 | 42.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=segmetrics_settings
- > Notice in wp-content/plugins/segmetrics/admin/class-segmetrics-admin.php+137
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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/segmetrics/public/partials/segmetrics-public-display.php
- 3× PHP files trigger server errors when accessed directly:
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/segmetrics/public/partials/segmetrics-public-display.php on line 3
- > PHP Notice
Undefined variable: settings in wp-content/plugins/segmetrics/public/partials/segmetrics-public-display.php on line 3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/segmetrics/admin/partials/segmetrics-admin-display.php:26
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser 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
8 plugin tags: infusionsoft, segmetrics, ontraport, activecampaign, convertkit...
segmetrics/segmetrics.php Passed 13 tests
This is the main PHP file of "SegMetrics Marketing Analytics" version 1.1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
103 characters long description:
Instantly include the SegMetrics tracking script to get unparalleled insights into your visitor journey
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin435 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 157 | 559 | 345 |
CSS | 1 | 17 | 13 | 87 |
JavaScript | 1 | 2 | 27 | 3 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 2.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 2 | 5.88% |
▷ Public methods | 28 | 82.35% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 17.65% |
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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/icon.png | 3.16KB | 1.91KB | ▼ 39.70% |
admin/img/logo.png | 5.21KB | 2.41KB | ▼ 53.75% |