78% identibyte-for-contact-form-7

Code Review | Identibyte for Contact Form 7

WordPress plugin Identibyte for Contact Form 7 scored78%from 54 tests.

About plugin

  • Plugin page: identibyte-for-co...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.0.2
  • WordPress version: 6.3.1
  • First release: Dec 29, 2018
  • Latest release: Dec 29, 2018
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: identibyte (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /601 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.42ms] Passed 4 tests

Server-side resources used by Identibyte for Contact Form 7
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.76 ▼1.41
Dashboard /wp-admin3.31 ▲0.0049.78 ▲0.67
Posts /wp-admin/edit.php3.36 ▲0.0048.17 ▼6.54
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.61 ▼20.54
Media Library /wp-admin/upload.php3.23 ▲0.0037.01 ▼1.20

Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Identibyte for Contact Form 7
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.30 ▼0.282.37 ▲0.2845.64 ▼1.00
Dashboard /wp-admin2,198 ▲215.62 ▼0.0194.00 ▲1.0737.26 ▼6.38
Posts /wp-admin/edit.php2,103 ▼02.01 ▲0.0141.97 ▲0.6235.81 ▼1.66
Add New Post /wp-admin/post-new.php1,545 ▼1022.97 ▲4.65644.62 ▲7.8652.94 ▼0.02
Media Library /wp-admin/upload.php1,400 ▼04.22 ▲0.01102.94 ▲2.7342.60 ▲1.03
Identibyte /wp-admin/identibyte.php260.440.1213.97

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

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

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/identibyte-for-contact-form-7/identibyte.php:12

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
    • > GET request to /wp-admin/identibyte.php
    • > Network (severe)
    wp-admin/identibyte.php - Failed to load resource: the server responded with a status of 404 (Not Found)

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
5 plugin tags: spam blocker, identibyte, disposable email, cf7, contact form 7

identibyte-for-contact-form-7/identibyte.php 92% from 13 tests

The entry point to "Identibyte for Contact Form 7" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("identibyte-for-contact-form-7.php" instead of "identibyte.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin148 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12319148

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/identibyte-logo-120x120.png6.31KB2.58KB▼ 59.14%