78% wp-content-personalization

Code Review | WordPress Content Personalization Plugin

WordPress plugin WordPress Content Personalization Plugin scored78%from 54 tests.

About plugin

  • Plugin page: wp-content-person...
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.8
  • WordPress version: 6.3.1
  • First release: Aug 30, 2018
  • Latest release: Aug 30, 2018
  • Number of updates: 12
  • Update frequency: every 0.1 days
  • Top authors: Bigandy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /932 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.58 ▼2.96
Dashboard /wp-admin3.34 ▲0.0351.49 ▼0.95
Posts /wp-admin/edit.php3.39 ▲0.0350.65 ▲2.39
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.59 ▼11.67
Media Library /wp-admin/upload.php3.26 ▲0.0337.70 ▲0.91
Content Personalization /wp-admin/options-general.php?page=wpcp3.2131.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲8913.17 ▼1.216.12 ▲4.3542.40 ▼1.25
Dashboard /wp-admin2,227 ▲245.85 ▲0.94110.94 ▼4.2843.99 ▲0.54
Posts /wp-admin/edit.php2,103 ▲32.01 ▼0.0334.84 ▼1.5931.81 ▼3.75
Add New Post /wp-admin/post-new.php1,531 ▼917.76 ▼0.24671.09 ▼9.9249.56 ▼3.72
Media Library /wp-admin/upload.php1,406 ▲64.21 ▼0.0597.06 ▼7.2942.63 ▼0.61
Content Personalization /wp-admin/options-general.php?page=wpcp7892.0524.3326.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

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:
LanguageFilesBlank linesComment linesLines of code
JavaScript3183234
PHP23116126
CSS213263
JSON20018

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 code0.11
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/wp-octo-button.png10.18KB4.70KB▼ 53.87%
images/custom-icon.png6.78KB2.14KB▼ 68.39%