83% comprobante-de-pago-peru

Code Review | Comprobante de Pago Perú

WordPress plugin Comprobante de Pago Perú scored83%from 54 tests.

About plugin

  • Plugin page: comprobante-de-pa...
  • Plugin version: 0.1.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-6.1.1
  • WordPress version: 6.3.1
  • First release: May 11, 2021
  • Latest release: Dec 6, 2022
  • Number of updates: 20
  • Update frequency: every 28.7 days
  • Top authors: renzotejada (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,552 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▼7.21ms] Passed 4 tests

An overview of server-side resources used by Comprobante de Pago Perú
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1038.63 ▼1.65
Dashboard /wp-admin3.41 ▲0.0645.10 ▼16.03
Posts /wp-admin/edit.php3.46 ▲0.1042.92 ▼8.08
Add New Post /wp-admin/post-new.php5.99 ▲0.1090.96 ▼3.08
Media Library /wp-admin/upload.php3.33 ▲0.1034.42 ▲0.87
Peru Receipt /wp-admin/admin.php?page=comprobante_settings3.2730.11

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

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

Browser metrics Passed 4 tests

Comprobante de Pago Perú: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,828 ▲5714.07 ▼0.482.03 ▲0.1042.58 ▲2.91
Dashboard /wp-admin2,206 ▲325.53 ▼0.1383.71 ▼15.5438.58 ▼5.73
Posts /wp-admin/edit.php2,115 ▲152.10 ▲0.0736.37 ▼14.4831.67 ▼17.51
Add New Post /wp-admin/post-new.php1,551 ▲2517.99 ▼5.00650.96 ▼9.9162.96 ▲10.86
Media Library /wp-admin/upload.php1,411 ▲114.20 ▲0.01100.97 ▲1.7646.41 ▲0.59
Peru Receipt /wp-admin/admin.php?page=comprobante_settings9062.1332.6628.24

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=comprobante_settings
    • > Notice in wp-content/plugins/comprobante-de-pago-peru/comprobante_admin.php+55
    Undefined index: tab

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 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed: You can take inspiration from this readme.txt

comprobante-de-pago-peru/comprobante-de-pago-peru.php 85% from 13 tests

The entry point to "Comprobante de Pago Perú" version 0.1.6 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Requires at least: Required version does not match the one declared in readme.txt ("5.2" instead of "2.6")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin641 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP37433358
JavaScript1161165
PO File14247118

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.61
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%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin