Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.67ms] Passed 4 tests
This is a short check of server-side resources used by WordPress Content Personalization Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 41.58 ▼2.96 |
Dashboard /wp-admin | 3.34 ▲0.03 | 51.49 ▼0.95 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 50.65 ▲2.39 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 87.59 ▼11.67 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.70 ▲0.91 |
Content Personalization /wp-admin/options-general.php?page=wpcp | 3.21 | 31.25 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Just a few items left to fix
- There were 1 file (4.00KB) illegally modified outside of "wp-content/plugins/wp-content-personalization/" and "wp-content/uploads/"
- (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
WordPress Content Personalization Plugin: 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,850 ▲89 | 13.17 ▼1.21 | 6.12 ▲4.35 | 42.40 ▼1.25 |
Dashboard /wp-admin | 2,227 ▲24 | 5.85 ▲0.94 | 110.94 ▼4.28 | 43.99 ▲0.54 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.01 ▼0.03 | 34.84 ▼1.59 | 31.81 ▼3.75 |
Add New Post /wp-admin/post-new.php | 1,531 ▼9 | 17.76 ▼0.24 | 671.09 ▼9.92 | 49.56 ▼3.72 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.21 ▼0.05 | 97.06 ▼7.29 | 42.63 ▼0.61 |
Content Personalization /wp-admin/options-general.php?page=wpcp | 789 | 2.05 | 24.33 | 26.96 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=wpcp
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=wpcp
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% 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× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-content-personalization/wp-content-personalization.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-content-personalization/shortcodes.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: personalized content, content personalization, website personalization, dynamic content, personalized marketing...
wp-content-personalization/wp-content-personalization.php Passed 13 tests
The main PHP file in "WordPress Content Personalization Plugin" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
109 characters long description:
WP Content Personalization allows you to show and hide content depending on a visitors' answer to a question.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin441 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 18 | 3 | 234 |
PHP | 2 | 31 | 16 | 126 |
CSS | 2 | 13 | 2 | 63 |
JSON | 2 | 0 | 0 | 18 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/wp-octo-button.png | 10.18KB | 4.70KB | ▼ 53.87% |
images/custom-icon.png | 6.78KB | 2.14KB | ▼ 68.39% |