84% kidunotifier

Code Review | KiduNotifier Pixel Code Handling

WordPress plugin KiduNotifier Pixel Code Handling scored84%from 54 tests.

About plugin

  • Plugin page: kidunotifier
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0+
  • WordPress version: 6.3.1
  • First release: Jul 13, 2020
  • Latest release: Jul 18, 2020
  • Number of updates: 6
  • Update frequency: every 0.8 days
  • Top authors: sanuas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /427 total downloads

Benchmarks

Plugin footprint 83% 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: ▼10.59ms] Passed 4 tests

Analyzing server-side resources used by KiduNotifier Pixel Code Handling
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.32 ▼0.47
Dashboard /wp-admin3.34 ▲0.0448.57 ▼4.98
Posts /wp-admin/edit.php3.39 ▲0.0447.22 ▼9.19
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.82 ▼20.83
Media Library /wp-admin/upload.php3.26 ▲0.0433.48 ▼7.35
KiduNotifier /wp-admin/options-general.php?page=kidunotifier3.2435.54

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for KiduNotifier Pixel Code Handling
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲7113.21 ▼1.174.80 ▲3.0143.90 ▲2.78
Dashboard /wp-admin2,210 ▲365.68 ▼0.0091.28 ▼3.5341.03 ▼4.72
Posts /wp-admin/edit.php2,118 ▲182.15 ▲0.1134.89 ▼7.0233.35 ▼3.66
Add New Post /wp-admin/post-new.php1,560 ▲3421.19 ▼2.32732.86 ▲55.5458.04 ▲6.36
Media Library /wp-admin/upload.php1,421 ▲184.21 ▼0.06101.71 ▲3.3243.18 ▼5.09
KiduNotifier /wp-admin/options-general.php?page=kidunotifier8392.2029.7835.32

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/kidunotifier/views/admin_notice.php:11
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/kidunotifier/views/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/kidunotifier/kidunotifier.php:168

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: notification-bar, social-proof, notification, notifier, alert...

kidunotifier/kidunotifier.php 92% from 13 tests

The entry point to "KiduNotifier Pixel Code Handling" version 0.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Description: The description should be shorter than 140 characters (currently 167 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin163 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP33394163

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.71
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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