78% easy-pixels-contact-form-extension-by-jevnet

Code Review | Easy Pixels CF7 extension

WordPress plugin Easy Pixels CF7 extension scored78%from 54 tests.

About plugin

  • Plugin page: easy-pixels-conta...
  • Plugin version: 2.14
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.9
  • WordPress version: 6.3.1
  • First release: Aug 30, 2019
  • Latest release: Apr 7, 2022
  • Number of updates: 39
  • Update frequency: every 24.4 days
  • Top authors: jevnet (64.1%)sperpina (38.46%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /2,870 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.18ms] Passed 4 tests

An overview of server-side resources used by Easy Pixels CF7 extension
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0237.29 ▲0.82
Dashboard /wp-admin3.33 ▼0.0145.31 ▼12.21
Posts /wp-admin/edit.php3.38 ▲0.0246.88 ▲1.28
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.65 ▲3.72
Media Library /wp-admin/upload.php3.25 ▲0.0234.13 ▼2.59

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Easy Pixels CF7 extension
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3914.27 ▼0.011.66 ▼0.0541.83 ▲0.67
Dashboard /wp-admin2,206 ▲285.56 ▼0.1881.49 ▼20.0940.38 ▼1.46
Posts /wp-admin/edit.php2,112 ▲121.97 ▲0.0035.48 ▲0.2332.87 ▲0.38
Add New Post /wp-admin/post-new.php1,542 ▲1622.98 ▼0.11654.96 ▼47.0752.56 ▲0.21
Media Library /wp-admin/upload.php1,414 ▲174.23 ▲0.0096.34 ▼3.3443.34 ▲0.89

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/easy-pixels-contact-form-extension-by-jevnet/easyPixelsCF7.php
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/easy-pixels-contact-form-extension-by-jevnet/admin/page-basicNotInstalled.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/easy-pixels-contact-form-extension-by-jevnet/admin/page-easyPixelsCF7Admin.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-pixels-contact-form-extension-by-jevnet/admin/easyPixelsCF7Admin.php:30

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: wpml, ecommerce, marketing, facebook, google...

easy-pixels-contact-form-extension-by-jevnet/easyPixelsCF7.php 92% from 13 tests

This is the main PHP file of "Easy Pixels CF7 extension" version 2.14, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("easy-pixels-contact-form-extension-by-jevnet.php" instead of "easyPixelsCF7.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected348 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP54525249
PO File2212399

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions1292.31%
▷ Anonymous functions17.69%
Constants2
▷ Global constants2100.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
There were not PNG files found in your plugin