74% datos-de-facturacion-para-mexico

Code Review | Datos de Facturación para México

WordPress plugin Datos de Facturación para México scored 74% from 54 tests.

About plugin

  • Plugin page: datos-de-facturac...
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 2, 2022
  • Latest release: Dec 2, 2022
  • Number of updates: 13
  • Update frequency: N/A
  • Top authors: racmanuel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 245 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼8.17ms] Passed 4 tests

A check of server-side resources used by Datos de Facturación para México
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1041.65 ▼4.82
Dashboard /wp-admin3.40 ▲0.0944.17 ▼4.59
Posts /wp-admin/edit.php3.51 ▲0.1548.04 ▼2.06
Add New Post /wp-admin/post-new.php6.00 ▲0.1182.29 ▼21.21
Media Library /wp-admin/upload.php3.32 ▲0.0939.67 ▲4.49

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Datos de Facturación para México
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,895 ▲13814.04 ▼0.365.95 ▲3.5345.00 ▲1.43
Dashboard /wp-admin2,220 ▲355.84 ▼0.03104.16 ▲1.9038.95 ▼5.59
Posts /wp-admin/edit.php2,102 ▲102.01 ▲0.0340.44 ▲0.1436.80 ▲2.84
Add New Post /wp-admin/post-new.php1,542 ▲623.23 ▲0.01653.73 ▲57.9144.64 ▼4.82
Media Library /wp-admin/upload.php1,402 ▲114.28 ▲0.07111.36 ▲6.8547.22 ▲1.55

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The plugin did not uninstall correctly, leaving 22 files (0.07MB) in the plugin directory
    • (new file) admin/js/datos-de-facturacion-para-mexico-admin.js
    • (new file) includes/class-datos-de-facturacion-para-mexico-activator.php
    • (new file) admin/index.php
    • (new file) admin/css/datos-de-facturacion-para-mexico-admin.css
    • (new file) admin/class-datos-de-facturacion-para-mexico-admin.php
    • (new file) datos-de-facturacion-para-mexico.php
    • (new file) README.txt
    • (new file) LICENSE.txt
    • (new file) includes/class-datos-de-facturacion-para-mexico-deactivator.php
    • (new file) admin/partials/datos-de-facturacion-para-mexico-admin-display.php
    • ...
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/datos-de-facturacion-para-mexico/public/partials/datos-de-facturacion-para-mexico-public-display.php
    • > /wp-content/plugins/datos-de-facturacion-para-mexico/admin/partials/datos-de-facturacion-para-mexico-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes: The official readme.txt might help

datos-de-facturacion-para-mexico/datos-de-facturacion-para-mexico.php 92% from 13 tests

"Datos de Facturación para México" version 1.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Git Repository: Please remove the Git repository from this plugin

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
Everything looks great! No dangerous files found in this plugin558 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP15200761519
JavaScript2117639
CSS2080

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity10.14
▷ Minimum class complexity1.00
▷ Maximum class complexity22.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods40
▷ Static methods820.00%
▷ Public methods2972.50%
▷ Protected methods00.00%
▷ Private methods1127.50%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin