10% mediapost-extensao-para-contact-form-7

Code Review | @MediaPost - Extensão para Contact Form 7

WordPress plugin @MediaPost - Extensão para Contact Form 7 scored10%from 54 tests.

About plugin

  • Plugin page: mediapost-extensa...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.4.2
  • WordPress version: 6.3.1
  • First release: Jan 8, 2018
  • Latest release: Jun 24, 2020
  • Number of updates: 5
  • Update frequency: every 180.0 days
  • Top authors: ademirdiniz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /2,985 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/mediapost-extensao-para-contact-form-7/cf7-mediapost.php+273
    Array and string offset access syntax with curly braces is deprecated

Server metrics [RAM: ▼1.82MB] [CPU: ▼55.17ms] Passed 4 tests

This is a short check of server-side resources used by @MediaPost - Extensão para Contact Form 7
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.18 ▼1.285.35 ▼34.33
Dashboard /wp-admin2.20 ▼1.156.05 ▼56.84
Posts /wp-admin/edit.php2.20 ▼1.166.96 ▼39.54
Add New Post /wp-admin/post-new.php2.20 ▼3.696.73 ▼89.95
Media Library /wp-admin/upload.php2.20 ▼1.037.28 ▼30.42

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for @MediaPost - Extensão para Contact Form 7
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲7313.13 ▼1.241.65 ▼0.0441.10 ▲0.36
Dashboard /wp-admin2,225 ▲404.89 ▼0.06107.24 ▲6.8340.29 ▼5.04
Posts /wp-admin/edit.php2,110 ▲211.99 ▼0.0741.65 ▲4.4937.88 ▲2.11
Add New Post /wp-admin/post-new.php1,547 ▲3323.32 ▲5.85671.95 ▼9.8859.70 ▲1.77
Media Library /wp-admin/upload.php1,407 ▲224.26 ▲0.10100.03 ▼5.4748.55 ▲4.89

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/mediapost-extensao-para-contact-form-7/cf7-mediapost.php+273
    Array and string offset access syntax with curly braces is deprecated
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Mapi\\Helper\\ContainerAbstract' not found in wp-content/plugins/mediapost-extensao-para-contact-form-7/includes/client/Response.php:16

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 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: formulario, extenso contact form 7, contact form 7, contact form 7 extension, mediapost

mediapost-extensao-para-contact-form-7/cf7-mediapost.php 85% from 13 tests

The entry point to "@MediaPost - Extensão para Contact Form 7" version 1.0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("mediapost-extensao-para-contact-form-7.php" instead of "cf7-mediapost.php")
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

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 plugin1,473 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP93238051,408
CSS11059
JavaScript1506

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity8.24
▷ Minimum class complexity1.00
▷ Maximum class complexity34.00
Average method complexity2.27
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes17
▷ Abstract classes317.65%
▷ Concrete classes1482.35%
▷ Final classes00.00%
Methods101
▷ Static methods1312.87%
▷ Public methods8483.17%
▷ Protected methods65.94%
▷ Private methods1110.89%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants333.33%
▷ Class constants666.67%
▷ Public constants6100.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