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
Installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▲1.02ms] Passed 4 tests
An overview of server-side resources used by Audience Segments
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 43.57 ▼0.05 |
Dashboard /wp-admin | 3.47 ▲0.16 | 50.22 ▼2.18 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 60.87 ▲11.37 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 90.76 ▼5.06 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 45.45 ▲12.64 |
Subject Matter /wp-admin/edit-tags.php?taxonomy=audience-subject | 3.38 | 37.22 |
Division /wp-admin/edit-tags.php?taxonomy=audience-division | 3.38 | 35.86 |
Segments /wp-admin/edit-tags.php?taxonomy=audience-segment | 3.38 | 39.74 |
Audience Settings /wp-admin/admin.php?page=alquemie_audience_settings | 3.40 | 38.31 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
alquemie_audience_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Audience Segments
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,862 ▲116 | 13.64 ▼0.65 | 1.82 ▲0.02 | 36.24 ▼7.30 |
Dashboard /wp-admin | 2,244 ▲56 | 5.87 ▲1.00 | 109.63 ▼5.86 | 42.12 ▼3.00 |
Posts /wp-admin/edit.php | 2,127 ▲38 | 2.17 ▲0.16 | 40.60 ▲3.89 | 35.68 ▲1.83 |
Add New Post /wp-admin/post-new.php | 1,561 ▲25 | 23.30 ▲0.26 | 675.42 ▲17.07 | 49.54 ▼7.37 |
Media Library /wp-admin/upload.php | 1,423 ▲35 | 4.20 ▼0.00 | 91.86 ▼2.78 | 41.40 ▼0.98 |
Subject Matter /wp-admin/edit-tags.php?taxonomy=audience-subject | 1,269 | 2.13 | 28.60 | 30.53 |
Division /wp-admin/edit-tags.php?taxonomy=audience-division | 1,272 | 2.13 | 24.57 | 27.47 |
Segments /wp-admin/edit-tags.php?taxonomy=audience-segment | 1,266 | 2.13 | 26.32 | 28.26 |
Audience Settings /wp-admin/admin.php?page=alquemie_audience_settings | 923 | 2.03 | 26.68 | 30.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- alquemie_audience_options
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=alquemie_audience_settings
- > Notice in wp-content/plugins/audience-segment-taxonomies/inc/settings-page.php+9
Undefined property: Alquemie_Audience_Segments::$types_enabled
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=alquemie_audience_settings
- > Warning in wp-content/plugins/audience-segment-taxonomies/inc/settings-page.php+51
in_array() expects parameter 2 to be array, null given
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=alquemie_audience_settings
- > Notice in wp-content/plugins/audience-segment-taxonomies/inc/settings-page.php+51
Undefined index: audience_post_types
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: google analytics, reporting, buyer journey, audience, marketing
audience-segment-taxonomies/audience.php 85% from 13 tests
The entry point to "Audience Segments" version 1.1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("audience-segment-taxonomies.php" instead of "audience.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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 plugin1,351 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 172 | 319 | 795 |
Markdown | 2 | 154 | 0 | 539 |
JSON | 2 | 0 | 0 | 17 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 20.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 5 | 10.20% |
▷ Public methods | 39 | 79.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 20.41% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin