84% cf7-telefone

Code Review | CF7 Telefone

WordPress plugin CF7 Telefone scored84%from 54 tests.

About plugin

  • Plugin page: cf7-telefone
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5
  • WordPress version: 6.3.1
  • First release: Apr 19, 2016
  • Latest release: Apr 13, 2016
  • Number of updates: 2
  • Update frequency: every 2.5 days
  • Top authors: lucascaires (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

40+ active /1,694 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by CF7 Telefone
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.93 ▼4.86
Dashboard /wp-admin3.31 ▲0.0047.50 ▼6.19
Posts /wp-admin/edit.php3.36 ▲0.0047.78 ▲1.83
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.19 ▼5.75
Media Library /wp-admin/upload.php3.23 ▲0.0037.83 ▲4.58

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for CF7 Telefone
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,882 ▲12513.60 ▼0.796.53 ▲4.5639.72 ▼12.18
Dashboard /wp-admin2,200 ▲95.80 ▼0.03105.33 ▲1.2339.53 ▼2.63
Posts /wp-admin/edit.php2,086 ▼32.03 ▲0.0139.24 ▼0.4335.58 ▲0.04
Add New Post /wp-admin/post-new.php1,536 ▲1923.71 ▲6.18616.97 ▼47.3655.20 ▼0.65
Media Library /wp-admin/upload.php1,388 ▲64.27 ▲0.0494.91 ▼7.0139.75 ▼3.83

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

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/cf7-telefone/cf7-telefone.php

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: contact form tel, cf7-mask, cf7-telefone, mascara telefone, cf7 telefone...

cf7-telefone/cf7-telefone.php Passed 13 tests

Analyzing the main PHP file in "CF7 Telefone" version 1.0
83 characters long description:
Plugin do WordPress que adiciona máscara nos campos de telefone do Contact Form 7.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected8 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1196
JavaScript1172

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions1
▷ Named functions1100.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
No PNG files were detected