10% purlem-personal-url-marketing

Code Review | Purlem Personalized URL

WordPress plugin Purlem Personalized URL scored10%from 54 tests.

About plugin

  • Plugin page: purlem-personal-u...
  • Plugin version: 1.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.1-4.6.1
  • WordPress version: 6.3.1
  • First release: Jun 19, 2010
  • Latest release: Jan 30, 2017
  • Number of updates: 60
  • Update frequency: every 40.3 days
  • Top authors: mthomas9 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /4,049 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/purlem-personal-url-marketing/purlem.php+355
    Methods with the same name as their class will not be constructors in a future version of PHP; PurlemWidget has a deprecated constructor

Server metrics [RAM: ▼1.79MB] [CPU: ▼59.34ms] Passed 4 tests

Analyzing server-side resources used by Purlem Personalized URL
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.21 ▼1.254.78 ▼35.34
Dashboard /wp-admin2.23 ▼1.116.23 ▼54.57
Posts /wp-admin/edit.php2.23 ▼1.127.20 ▼43.53
Add New Post /wp-admin/post-new.php2.23 ▼3.666.35 ▼103.91
Media Library /wp-admin/upload.php2.23 ▼1.005.38 ▼26.59
Purlem /wp-admin/options-general.php?page=plugin2.236.64

Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_purlemwidget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Purlem Personalized URL: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.21 ▼1.391.59 ▼0.2140.30 ▼0.02
Dashboard /wp-admin2,210 ▲225.85 ▲0.95106.24 ▲1.7642.38 ▼1.63
Posts /wp-admin/edit.php2,096 ▲71.99 ▼0.0039.55 ▼6.3033.72 ▼3.96
Add New Post /wp-admin/post-new.php1,522 ▲823.07 ▲5.63633.11 ▼35.3956.41 ▼1.65
Media Library /wp-admin/upload.php1,392 ▲14.15 ▼0.0996.39 ▼0.9543.70 ▼5.13
Purlem /wp-admin/options-general.php?page=plugin8681.7228.3430.76

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/purlem-personal-url-marketing/purlem.php+355
    Methods with the same name as their class will not be constructors in a future version of PHP; PurlemWidget has a deprecated constructor
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_purlemwidget
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
    • > GET request to /wp-admin/options-general.php?page=plugin
    • > Deprecated in wp-content/plugins/purlem-personal-url-marketing/purlem.php+355
    Methods with the same name as their class will not be constructors in a future version of PHP; PurlemWidget has a deprecated constructor
    • > GET request to /wp-admin/options-general.php?page=plugin
    • > Notice in wp-content/plugins/purlem-personal-url-marketing/purlem.php+28
    Undefined index: purl
    • > GET request to /wp-admin/options-general.php?page=plugin
    • > Deprecated in wp-content/plugins/purlem-personal-url-marketing/purlem.php+42
    Function create_function() is deprecated
    • > GET request to /wp-admin/options-general.php?page=plugin
    • > User deprecated in wp-includes/functions.php+5546
    The called constructor method for WP_Widget class in PurlemWidget is deprecated since version 4.3.0! Use __construct() instead.
    • > GET request to /wp-admin/options-general.php?page=plugin
    • > Notice in wp-content/plugins/purlem-personal-url-marketing/purlem.php+190
    Undefined variable: curl

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
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/purlem-personal-url-marketing/purlem.php:36
    • > PHP Notice
      Undefined index: purl in wp-content/plugins/purlem-personal-url-marketing/purlem.php on line 28

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=plugin
    • > Network (severe)
    https://purlem.com/assets/images/logo_white.gif - Failed to load resource: the server responded with a status of 404 ()

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === purlem-personal-url-marketing === )
Please take inspiration from this readme.txt

purlem-personal-url-marketing/purlem.php 85% from 13 tests

This is the main PHP file of "Purlem Personalized URL" version 1.4.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 174 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("purlem-personal-url-marketing.php" instead of "purlem.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected351 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14632351

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin