83% notify-engage

Code Review | Notify Engage Pixel Handling

WordPress plugin Notify Engage Pixel Handling scored83%from 54 tests.

About plugin

  • Plugin page: notify-engage
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6+
  • WordPress version: 6.3.1
  • First release: Mar 29, 2020
  • Latest release: Jul 3, 2020
  • Number of updates: 5
  • Update frequency: every 25.8 days
  • Top authors: imganeshk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /392 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼8.29ms] Passed 4 tests

Analyzing server-side resources used by Notify Engage Pixel Handling
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.03 ▼2.45
Dashboard /wp-admin3.33 ▲0.0243.56 ▼2.42
Posts /wp-admin/edit.php3.38 ▲0.0243.02 ▼5.77
Add New Post /wp-admin/post-new.php5.91 ▲0.0280.69 ▼22.50
Media Library /wp-admin/upload.php3.25 ▲0.0234.06 ▼1.51
Notify Engage /wp-admin/options-general.php?page=notify-engage3.2229.93

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Notify Engage Pixel Handling
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.48 ▲0.311.69 ▼0.0344.75 ▲4.69
Dashboard /wp-admin2,213 ▲255.85 ▲0.95102.64 ▼10.8040.77 ▲2.32
Posts /wp-admin/edit.php2,093 ▲42.05 ▲0.0536.99 ▼5.3938.18 ▲2.80
Add New Post /wp-admin/post-new.php1,545 ▲3118.39 ▲0.91629.28 ▲23.3752.94 ▼1.93
Media Library /wp-admin/upload.php1,386 ▼24.16 ▼0.0594.41 ▼7.9642.20 ▼2.75
Notify Engage /wp-admin/options-general.php?page=notify-engage8102.0623.6128.16

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/notify-engage/views/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/notify-engage/notify-engage.php:26

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

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed: The official readme.txt might help

notify-engage/notify-engage.php 77% from 13 tests

The entry point to "Notify Engage Pixel Handling" version 0.1 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 194 characters long)
  • Domain Path: The domain path should be prefixed with a forward slash character ("/languages")
  • Domain Path: Use only dashes and lowercase characters for the domain path ("languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected110 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22254110

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity12.00
▷ Minimum class complexity12.00
▷ Maximum class complexity12.00
Average method complexity2.57
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected