90% pixel-manager-for-contact-form-7

Code Review | Pixel Manager for Contact Form 7

WordPress plugin Pixel Manager for Contact Form 7 scored90%from 54 tests.

About plugin

  • Plugin page: pixel-manager-for...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 22, 2023
  • Latest release: Aug 22, 2023
  • Number of updates: 2
  • Update frequency: every 2.0 days
  • Top authors: gravitymaster97 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /56 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.00MB] [CPU: ▼5.33ms] Passed 4 tests

Server-side resources used by Pixel Manager for Contact Form 7
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.46 ▼9.02
Dashboard /wp-admin3.31 ▲0.0147.60 ▼4.22
Posts /wp-admin/edit.php3.36 ▲0.0049.61 ▼0.93
Add New Post /wp-admin/post-new.php5.89 ▲0.0087.35 ▼7.13
Media Library /wp-admin/upload.php3.24 ▲0.0033.81 ▼0.29

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Pixel Manager for Contact Form 7: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.05 ▼0.301.75 ▼0.0043.77 ▼3.90
Dashboard /wp-admin2,195 ▲185.62 ▲0.0188.39 ▼10.1740.17 ▼10.79
Posts /wp-admin/edit.php2,097 ▼31.97 ▼0.0236.90 ▼2.4937.51 ▼0.01
Add New Post /wp-admin/post-new.php1,526 ▼223.01 ▼0.46618.39 ▼20.9853.74 ▲4.58
Media Library /wp-admin/upload.php1,403 ▼04.22 ▲0.0697.47 ▼8.6242.72 ▼1.82

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Contributors: Contributors not specified
Please take inspiration from this readme.txt

pixel-manager-for-contact-form-7/pixel-manager-for-contact-form-7.php Passed 13 tests

The entry point to "Pixel Manager for Contact Form 7" version 1.0 is a PHP file that has certain tags in its header comment area
41 characters long description:
Setup Social Pixel in Your Contact Form 7

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin157 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP53921157

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.36
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There are no PNG files in this plugin