90% virtuaria-catalogo-redes-sociais

Code Review | Virtuaria - Integração de Catálogo com Redes Sociais

WordPress plugin Virtuaria - Integração de Catálogo com Redes Sociais scored90%from 54 tests.

About plugin

  • Plugin page: virtuaria-catalog...
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4.1
  • WordPress version: 6.3.1
  • First release: Nov 28, 2022
  • Latest release: Nov 23, 2023
  • Number of updates: 9
  • Update frequency: every 40.3 days
  • Top authors: tecnologiavirtuaria (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /644 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

This is a short check of server-side resources used by Virtuaria - Integração de Catálogo com Redes Sociais
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.75 ▲4.50
Dashboard /wp-admin3.31 ▼0.0347.88 ▼11.80
Posts /wp-admin/edit.php3.43 ▲0.0746.29 ▲0.03
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.92 ▼3.33
Media Library /wp-admin/upload.php3.24 ▲0.0133.37 ▼1.95

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Virtuaria - Integração de Catálogo com Redes Sociais
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲1714.23 ▼0.481.66 ▼0.1444.47 ▲7.85
Dashboard /wp-admin2,206 ▲285.65 ▼0.0395.25 ▼19.8443.97 ▼0.89
Posts /wp-admin/edit.php2,115 ▲122.00 ▲0.0437.17 ▼0.4036.28 ▲0.91
Add New Post /wp-admin/post-new.php1,535 ▲823.23 ▲0.16661.36 ▲67.7850.38 ▼1.44
Media Library /wp-admin/upload.php1,414 ▲204.14 ▼0.1297.72 ▼7.9543.23 ▲0.74

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: marketing, integration, facebook, instagram, meta...

virtuaria-catalogo-redes-sociais/virtuaria-facebook-integration.php 92% from 13 tests

The entry point to "Virtuaria - Integração de Catálogo com Redes Sociais" version 1.2.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("virtuaria-catalogo-redes-sociais.php" instead of "virtuaria-facebook-integration.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin788 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP497168699
JavaScript110089

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity52.00
▷ Minimum class complexity43.00
▷ Maximum class complexity61.00
Average method complexity5.08
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes150.00%
▷ Concrete classes150.00%
▷ Final classes00.00%
Methods25
▷ Static methods312.00%
▷ Public methods1768.00%
▷ Protected methods28.00%
▷ Private methods624.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

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin