10% pimex-for-contact-form-7

Code Review | Pimex for Contact Form 7

WordPress plugin Pimex for Contact Form 7 scored10%from 54 tests.

About plugin

  • Plugin page: pimex-for-contact...
  • Plugin version: 4.3.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8
  • WordPress version: 6.3.1
  • First release: Feb 12, 2019
  • Latest release: Feb 12, 2019
  • Number of updates: 4
  • Update frequency: every 8.5 days
  • Top authors: pimex (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /651 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • The plugin did not install without errors
    • > Parse error in wp-content/plugins/pimex-for-contact-form-7/lib/pimex.php+173
    syntax error, unexpected end of file

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

Server-side resources used by Pimex for Contact Form 7
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.23 ▼24.78
Dashboard /wp-admin3.31 ▲0.0045.69 ▼1.34
Posts /wp-admin/edit.php3.36 ▲0.0049.66 ▲4.05
Add New Post /wp-admin/post-new.php5.89 ▲0.0095.21 ▲7.27
Media Library /wp-admin/upload.php3.23 ▲0.0033.97 ▲0.92

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Pimex for Contact Form 7
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.16 ▼1.491.82 ▼0.9642.59 ▼17.49
Dashboard /wp-admin2,203 ▲155.84 ▼0.0498.67 ▼13.6438.26 ▼5.98
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0039.42 ▲2.2934.46 ▲1.55
Add New Post /wp-admin/post-new.php1,533 ▼023.05 ▼0.16587.25 ▼62.6355.73 ▲2.46
Media Library /wp-admin/upload.php1,391 ▲34.23 ▼0.0299.15 ▼20.0044.40 ▲0.75

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 take a closer look at the following
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/pimex-for-contact-form-7/lib/pimex.php on line 173
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/pimex-for-contact-form-7/lib/pimex.php on line 173
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/pimex-for-contact-form-7/settings.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Please fix this invalid url: "pimex.co"
You can look at the official readme.txt

pimex-for-contact-form-7/index.php 85% from 13 tests

The principal PHP file in "Pimex for Contact Form 7" v. 4.3.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("pimex-for-contact-form-7.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin652 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript29917426
PHP34119163
PO File14633
CSS13030

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.80
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icono.png0.42KB0.34KB▼ 19.21%
images/icono_bl.png0.29KB0.26KB▼ 11.30%
images/logo_head.png1.17KB1.22KB0.00%