Benchmarks
Plugin footprint 30% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.85MB] [CPU: ▲0.04ms] Passed 4 tests
Analyzing server-side resources used by PersonalizeWP (Previous)
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.33 ▲0.86 | 42.61 ▲5.18 |
Dashboard /wp-admin | 4.19 ▲0.88 | 48.04 ▲2.26 |
Posts /wp-admin/edit.php | 4.24 ▲0.88 | 45.89 ▼1.24 |
Add New Post /wp-admin/post-new.php | 6.75 ▲0.86 | 84.19 ▼6.06 |
Media Library /wp-admin/upload.php | 4.05 ▲0.81 | 42.48 ▲9.08 |
Settings /wp-admin/admin.php?page=wp-dxp/settings | 4.03 | 41.53 |
Categories /wp-admin/admin.php?page=wp-dxp/categories | 4.05 | 44.13 |
Personalization /wp-admin/admin.php?page=wp-dxp/rules | 4.14 | 49.52 |
Dashboard /wp-admin/admin.php?page=wp-dxp | 4.03 | 39.08 |
Server storage [IO: ▲6.31MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 206 new files
Database: 3 new tables, 9 new options
New tables |
---|
wp_wp_dxp_rules |
wp_dxp_active_blocks |
wp_wp_dxp_categories |
New WordPress options |
---|
wp_dxp_admin_onboarding_message |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
wp_dxp_editor_role_values |
wp_dxp_last_migration |
Browser metrics Passed 4 tests
Checking browser requirements for PersonalizeWP (Previous)
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,951 ▲190 | 15.20 ▲0.46 | 40.68 ▲38.74 | 38.49 ▼2.86 |
Dashboard /wp-admin | 2,235 ▲58 | 5.58 ▼0.09 | 85.20 ▼2.87 | 38.18 ▲0.85 |
Posts /wp-admin/edit.php | 2,140 ▲40 | 2.00 ▼0.02 | 35.37 ▼1.26 | 34.65 ▼1.34 |
Add New Post /wp-admin/post-new.php | 1,724 ▲196 | 24.07 ▲0.80 | 685.95 ▼10.35 | 30.19 ▼21.41 |
Media Library /wp-admin/upload.php | 1,440 ▲40 | 4.15 ▼0.04 | 104.07 ▼12.43 | 43.61 ▼2.62 |
Settings /wp-admin/admin.php?page=wp-dxp/settings | 1,196 | 2.28 | 37.04 | 69.98 |
Categories /wp-admin/admin.php?page=wp-dxp/categories | 1,606 | 2.56 | 52.01 | 61.12 |
Personalization /wp-admin/admin.php?page=wp-dxp/rules | 2,866 | 2.86 | 57.30 | 65.38 |
Dashboard /wp-admin/admin.php?page=wp-dxp | 1,263 | 2.27 | 33.07 | 41.78 |
Uninstaller [IO: ▲6.31MB] [DB: ▲0.01MB] 0% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the followingZombie tables were found after uninstall: 3 tables This plugin did not uninstall successfully, leaving 9 options in the database
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/wp-dxp/includes/wp-dxp-constants.php+3
Constant WP_DXP_TAG already defined
- Incomplete uninstall procedure, leaving 206 files (6.31MB) in the plugin directory
- (new file) LICENSE.txt
- (new file) admin/class-wp-dxp-admin-rules-page.php
- (new file) admin/class-wp-dxp-admin-blocks.php
- (new file) admin/class-wp-dxp-admin-dashboard-page.php
- (new file) admin/class-wp-dxp-admin.php
- (new file) README.txt
- (new file) admin/class-wp-dxp-admin-base-page.php
- (new file) admin/class-wp-dxp-admin-categories-page.php
- (new file) GeoLite2-Country.mmdb
- (new file) admin/class-wp-dxp-admin-settings-page.php
- ...
- wp_wp_dxp_categories
- wp_wp_dxp_rules
- wp_dxp_active_blocks
- theysaidso_admin_options
- can_compress_scripts
- wp_dxp_editor_role_values
- recovery_mode_email_last_sent
- wp_dxp_last_migration
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
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
Please take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-dxp/admin/partials/_other/footer.php
- > /wp-content/plugins/wp-dxp/public/partials/wp-dxp-public-display.php
- 90× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'MaxMind\\Exception\\InvalidRequestException' not found in wp-content/plugins/wp-dxp/vendor/maxmind/web-service-common/src/Exception/AuthenticationException.php:8
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-dxp/admin/partials/_other/cta.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-dxp/admin/partials/rules/edit.php:16
- > PHP Fatal error
Uncaught Error: Class 'Wp_Dxp_Admin_Base_Page' not found in wp-content/plugins/wp-dxp/admin/class-wp-dxp-admin-dashboard-page.php:2
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Exception\\GeoIp2Exception' not found in wp-content/plugins/wp-dxp/vendor/geoip2/geoip2/src/Exception/HttpException.php:8
- > PHP Fatal error
Uncaught Error: Class 'Wp_Dxp_Admin_Base_Page' not found in wp-content/plugins/wp-dxp/admin/class-wp-dxp-admin-categories-page.php:2
- > PHP Fatal error
Uncaught Error: Class 'MaxMind\\Exception\\InvalidRequestException' not found in wp-content/plugins/wp-dxp/vendor/maxmind/web-service-common/src/Exception/IpAddressNotFoundException.php:5
- > PHP Fatal error
Uncaught Error: Class 'Wp_Dxp_Base_Condition' not found in wp-content/plugins/wp-dxp/includes/conditions/core-users-last-visit.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-dxp/admin/partials/rules/_form.php:3
- > PHP Fatal error
Uncaught Error: Class 'GeoIp2\\Model\\AbstractModel' not found in wp-content/plugins/wp-dxp/vendor/geoip2/geoip2/src/Model/Asn.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
10 plugin tags: personalization, show content, personalisation, segmentation, conditions...
wp-dxp/wp-dxp.php 92% from 13 tests
"PersonalizeWP (Previous)" version 1.6.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 307 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin30,573 lines of code in 174 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 128 | 105 | 11,267 |
PO File | 6 | 2,673 | 3,293 | 7,999 |
PHP | 125 | 1,697 | 3,361 | 7,094 |
JavaScript | 9 | 240 | 115 | 1,853 |
Markdown | 7 | 372 | 0 | 878 |
C | 1 | 97 | 18 | 589 |
SVG | 13 | 0 | 0 | 429 |
JSON | 5 | 0 | 0 | 384 |
Bourne Shell | 1 | 20 | 0 | 40 |
m4 | 1 | 8 | 0 | 32 |
C/C++ Header | 1 | 4 | 12 | 8 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 8.01 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 2.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 89 | |
▷ Abstract classes | 3 | 3.37% |
▷ Concrete classes | 86 | 96.63% |
▷ Final classes | 0 | 0.00% |
Methods | 397 | |
▷ Static methods | 56 | 14.11% |
▷ Public methods | 322 | 81.11% |
▷ Protected methods | 17 | 4.28% |
▷ Private methods | 58 | 14.61% |
Functions | 30 | |
▷ Named functions | 5 | 16.67% |
▷ Anonymous functions | 25 | 83.33% |
Constants | 60 | |
▷ Global constants | 42 | 70.00% |
▷ Class constants | 18 | 30.00% |
▷ Public constants | 18 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
11 PNG files occupy 0.75MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/ui-icons_222222_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
admin/img/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |
admin/img/ui-bg_highlight-soft_75_cccccc_1x100.png | 0.10KB | 0.17KB | 0.00% |
admin/img/dashboard-sample.png | 752.54KB | 370.69KB | ▼ 50.74% |
admin/img/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |