90% facturante

Code Review | Facturante - Facturación Electrónica

WordPress plugin Facturante - Facturación Electrónica scored90%from 54 tests.

About plugin

  • Plugin page: facturante
  • Plugin version: 1.09
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-5.7.2
  • WordPress version: 6.3.1
  • First release: Apr 29, 2020
  • Latest release: Apr 12, 2022
  • Number of updates: 38
  • Update frequency: every 18.8 days
  • Top authors: facturante (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,933 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.47MB] [CPU: ▼6.19ms] Passed 4 tests

Analyzing server-side resources used by Facturante - Facturación Electrónica
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.94 ▲0.4740.89 ▲3.81
Dashboard /wp-admin3.77 ▲0.4751.75 ▲3.00
Posts /wp-admin/edit.php3.82 ▲0.4744.08 ▼5.59
Add New Post /wp-admin/post-new.php6.37 ▲0.4985.84 ▼25.96
Media Library /wp-admin/upload.php3.70 ▲0.4735.71 ▲3.86

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 62 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Facturante - Facturación Electrónica
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,874 ▲12813.20 ▼1.541.94 ▲0.1444.45 ▲0.50
Dashboard /wp-admin2,255 ▲705.93 ▲0.0799.75 ▼17.1737.75 ▼10.91
Posts /wp-admin/edit.php2,138 ▲702.06 ▲0.0435.77 ▼3.2031.39 ▼0.34
Add New Post /wp-admin/post-new.php1,573 ▲3918.43 ▼4.98599.00 ▼46.7059.36 ▲6.60
Media Library /wp-admin/upload.php1,437 ▲494.35 ▲0.15100.13 ▼6.6743.36 ▲1.55

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

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 97% 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
These attributes need to be fixed:
  • Screenshots: These screenshots need descriptions #2, #4 in facturante/assets to your readme.txt
The official readme.txt might help

facturante/facturante.php Passed 13 tests

The principal PHP file in "Facturante - Facturación Electrónica" v. 1.09 is loaded by WordPress automatically on each request
49 characters long description:
Facturante integrates WooCommerce with Facturante

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
Success! There were no dangerous files found in this plugin3,663 lines of code in 54 files:
LanguageFilesBlank linesComment linesLines of code
PHP436746912,449
JavaScript318348747
CSS3377314
PO File1294468
SVG30363
JSON10022

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity8.85
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity3.28
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces0
Interfaces4
Traits0
Classes35
▷ Abstract classes00.00%
▷ Concrete classes35100.00%
▷ Final classes00.00%
Methods140
▷ Static methods2316.43%
▷ Public methods12690.00%
▷ Protected methods00.00%
▷ Private methods1410.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants22
▷ Global constants522.73%
▷ Class constants1777.27%
▷ Public constants17100.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 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/icon-128x128.png3.33KB2.07KB▼ 37.99%
assets/icon-256x256.png11.75KB4.01KB▼ 65.87%
assets/banner-772x250.png20.01KB7.37KB▼ 63.19%