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 gracefully, with no errors
Server metrics [RAM: ▼0.52MB] [CPU: ▼15.16ms] Passed 4 tests
This is a short check of server-side resources used by WP Personalizer - Personalize your content to your visitor
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 40.89 ▲0.10 |
Dashboard /wp-admin | 3.47 ▲0.16 | 53.38 ▲1.04 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 48.77 ▲0.66 |
Add New Post /wp-admin/post-new.php | 3.31 ▼2.58 | 39.46 ▼60.77 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 39.46 ▼0.63 |
Server storage [IO: ▲3.89MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 50 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_wppersonalizer |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
personalizer_ppuri10 |
Browser metrics Passed 4 tests
WP Personalizer - Personalize your content to your visitor: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲75 | 13.31 ▼1.37 | 5.08 ▲3.25 | 27.75 ▼17.94 |
Dashboard /wp-admin | 2,242 ▲39 | 5.15 ▲0.17 | 114.55 ▲8.37 | 47.23 ▲2.57 |
Posts /wp-admin/edit.php | 2,125 ▲25 | 2.29 ▲0.28 | 41.37 ▲4.29 | 38.54 ▲3.44 |
Add New Post /wp-admin/post-new.php | 6,438 ▲4,892 | 27.89 ▲4.71 | 889.49 ▲228.70 | 52.95 ▼2.52 |
Media Library /wp-admin/upload.php | 1,424 ▲24 | 4.46 ▲0.23 | 104.24 ▼4.89 | 48.06 ▲1.29 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- personalizer_ppuri10
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Please fix the following
- 11× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-personalizer/function/wppersonalisor_browser.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-personalizer/function/wppersonalisor_ip.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wp-personalizer/unichatbox/user_not_verified_bonus.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/wp-personalizer/ajax_edit.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/wp-personalizer/unichatbox/user_not_verified.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-personalizer/function/wppersonalisor_country.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-personalizer/function/wppersonalisor_region.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/wp-personalizer/ajax_delete.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-personalizer/function/wppersonalisor_city.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-personalizer/function/wppersonalisor_windows.php:2
- > 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 errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: No descriptions were found for these screenshots #1, #2 in wp-personalizer/assets to your readme.txt
wp-personalizer/WPPersonalizer.php 85% from 13 tests
This is the main PHP file of "WP Personalizer - Personalize your content to your visitor" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-personalizer.php" instead of "WPPersonalizer.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 148 characters long)
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
There were no executable files found in this plugin22,820 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 9 | 1,467 | 52 | 13,559 |
JavaScript | 6 | 2,022 | 1,717 | 7,948 |
PHP | 13 | 368 | 25 | 1,313 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 3.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 27 | |
▷ Named functions | 26 | 96.30% |
▷ Anonymous functions | 1 | 3.70% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
8 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
asset/img/Edit-button.png | 5.82KB | 3.32KB | ▼ 42.89% |
asset/img/icon.png | 1.31KB | 0.75KB | ▼ 42.56% |
asset/img/update.png | 6.18KB | 3.23KB | ▼ 47.83% |
asset/img/delete.png | 6.34KB | 3.50KB | ▼ 44.77% |
(invalid) unichatbox/asset/img/blue-icon-security.png | 13.74KB | 0.00KB | ▼ 100.00% |