74% fale-conosco

Code Review | Fale Conosco Nvoip

WordPress plugin Fale Conosco Nvoip scored74%from 54 tests.

About plugin

  • Plugin page: fale-conosco
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Feb 9, 2023
  • Latest release: Mar 27, 2023
  • Number of updates: 12
  • Update frequency: every 4.9 days
  • Top authors: nvoip (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /395 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▼0.79MB] [CPU: ▼27.24ms] Passed 4 tests

A check of server-side resources used by Fale Conosco Nvoip
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1341.51 ▼2.44
Dashboard /wp-admin3.16 ▼0.1522.02 ▼23.36
Posts /wp-admin/edit.php3.16 ▼0.2026.08 ▼19.97
Add New Post /wp-admin/post-new.php3.16 ▼2.7324.68 ▼55.58
Media Library /wp-admin/upload.php3.16 ▼0.0725.41 ▼10.03

Server storage [IO: ▲0.05MB] [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: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Fale Conosco Nvoip
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲8313.60 ▼0.761.58 ▼0.3339.62 ▼4.94
Dashboard /wp-admin2,217 ▲355.84 ▼0.02101.73 ▼4.1576.50 ▲34.33
Posts /wp-admin/edit.php2,103 ▲112.01 ▼0.0142.33 ▼0.6536.93 ▲1.90
Add New Post /wp-admin/post-new.php1,524 ▼1817.63 ▼1.02754.14 ▲143.0355.08 ▼10.17
Media Library /wp-admin/upload.php1,396 ▲174.13 ▼0.0594.26 ▼11.5173.16 ▲28.90

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/fale-conosco/nvoip_faleconosco-plugin-wp.php+760
    Undefined index: label
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

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 everything seems fine, this is not 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: Call to undefined function add_action() in wp-content/plugins/fale-conosco/nvoip_faleconosco-plugin-wp.php:20

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

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can take inspiration from this readme.txt

fale-conosco/nvoip_faleconosco-plugin-wp.php 92% from 13 tests

"Fale Conosco Nvoip" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("fale-conosco.php" instead of "nvoip_faleconosco-plugin-wp.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,217 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11931171,217

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity3.56
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.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

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon_nvoip.png0.35KB0.30KB▼ 15.13%
public/assets/iconeN.png0.35KB0.30KB▼ 15.13%