78% id5-pixel-manager

Code Review | ID5 Pixel Manager

WordPress plugin ID5 Pixel Manager scored78%from 54 tests.

About plugin

  • Plugin page: id5-pixel-manager
  • Plugin version: 1.0.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.0
  • WordPress version: 6.3.1
  • First release: Jun 13, 2018
  • Latest release: Dec 11, 2018
  • Number of updates: 23
  • Update frequency: every 8.8 days
  • Top authors: id5technology (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /714 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.70ms] Passed 4 tests

Server-side resources used by ID5 Pixel Manager
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0642.55 ▲1.42
Dashboard /wp-admin3.36 ▲0.0645.48 ▼5.67
Posts /wp-admin/edit.php3.48 ▲0.1247.51 ▼1.54
Add New Post /wp-admin/post-new.php5.96 ▲0.0895.35 ▼8.99
Media Library /wp-admin/upload.php3.29 ▲0.0635.76 ▲3.36
ID5 Pixel Manager /wp-admin/options-general.php?page=id5-wp-pixel-manager3.2628.14

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

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

Browser metrics Passed 4 tests

ID5 Pixel Manager: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲7313.25 ▼1.501.76 ▼0.0244.71 ▼3.37
Dashboard /wp-admin2,214 ▲234.82 ▼0.08110.32 ▼8.0140.74 ▼10.30
Posts /wp-admin/edit.php2,100 ▲112.01 ▼0.0040.77 ▲1.9935.39 ▲3.22
Add New Post /wp-admin/post-new.php1,521 ▼023.27 ▲0.12644.56 ▼50.0757.20 ▲4.80
Media Library /wp-admin/upload.php1,399 ▲114.16 ▼0.0898.53 ▼10.4043.53 ▼2.43
ID5 Pixel Manager /wp-admin/options-general.php?page=id5-wp-pixel-manager7972.0324.3426.25

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

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=id5-wp-pixel-manager
    • > Notice in wp-content/plugins/id5-pixel-manager/admin/partials/id5-wp-pixel-manager-admin-display.php+30
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/id5-pixel-manager/admin/partials/id5-wp-pixel-manager-admin-display.php:19

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 93% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
5 plugin tags: usersync, advertising, adtech, cookie sync, ad

id5-pixel-manager/id5-wp-pixel-manager.php 85% from 13 tests

The entry point to "ID5 Pixel Manager" version 1.0.8 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("id5-pixel-manager.php" instead of "id5-wp-pixel-manager.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected242 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP11130540231
CSS1247
JavaScript22274

PHP code Passed 2 tests

Analyzing 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.13
Average class complexity2.29
▷ Minimum class complexity1.00
▷ Maximum class complexity4.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods27
▷ Static methods27.41%
▷ Public methods2281.48%
▷ Protected methods00.00%
▷ Private methods518.52%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected