83% retargetpal

Code Review | RetargetPal

WordPress plugin RetargetPal scored83%from 54 tests.

About plugin

  • Plugin page: retargetpal
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 6.3.1
  • First release: Oct 6, 2021
  • Latest release: Oct 12, 2021
  • Number of updates: 6
  • Update frequency: every 2.5 days
  • Top authors: retargetpal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /288 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.52ms] Passed 4 tests

Server-side resources used by RetargetPal
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.21 ▼2.44
Dashboard /wp-admin3.32 ▲0.0251.38 ▼3.34
Posts /wp-admin/edit.php3.37 ▲0.0148.90 ▼1.35
Add New Post /wp-admin/post-new.php5.90 ▲0.0188.90 ▼18.93
Media Library /wp-admin/upload.php3.24 ▲0.0142.90 ▲7.30

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for RetargetPal
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,362 ▲60114.82 ▲0.441.98 ▲0.2762.80 ▲18.69
Dashboard /wp-admin2,742 ▲5366.47 ▲1.41116.24 ▲15.5655.23 ▲12.09
Posts /wp-admin/edit.php2,100 ▼02.04 ▼0.0136.58 ▼4.3054.46 ▲14.24
Add New Post /wp-admin/post-new.php1,526 ▼2817.63 ▼0.81679.28 ▲50.1364.13 ▲3.29
Media Library /wp-admin/upload.php1,400 ▼04.25 ▼0.01110.12 ▲0.7148.82 ▲1.97

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/retargetpal/RetargetPal.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: online marketing, retargeting, social media

retargetpal/RetargetPal.php 85% from 13 tests

The main PHP file in "RetargetPal" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("retargetpal.php" instead of "RetargetPal.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin18,606 lines of code in 57 files:
LanguageFilesBlank linesComment linesLines of code
JSON40017,523
JSX21574704
SVG806144
JavaScript16191884
PHP2264263
Markdown132038
CSS34129
HTML242021

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
2 PNG files occupy 0.78MB with 0.58MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
retargetpal-dashborad/public/assests/images/second-section.png399.63KB100.48KB▼ 74.86%
retargetpal-dashborad/build/assests/images/second-section.png399.63KB100.48KB▼ 74.86%