84% pkt1-centro-de-envios

Code Review | PKT1 Centro de envios

WordPress plugin PKT1 Centro de envios scored84%from 54 tests.

About plugin

  • Plugin page: pkt1-centro-de-en...
  • Plugin version: 1.2.0
  • PHP compatiblity: 7.0.33+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Sep 15, 2020
  • Latest release: Nov 18, 2022
  • Number of updates: 72
  • Update frequency: every 11.0 days
  • Top authors: carlosfrancopkt1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /2,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
Installer ran successfully

Server metrics [RAM: ▲0.25MB] [CPU: ▼1.93ms] Passed 4 tests

Analyzing server-side resources used by PKT1 Centro de envios
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2643.25 ▲3.68
Dashboard /wp-admin3.56 ▲0.2548.22 ▼8.86
Posts /wp-admin/edit.php3.67 ▲0.3147.64 ▼4.45
Add New Post /wp-admin/post-new.php6.14 ▲0.2595.70 ▲1.90
Media Library /wp-admin/upload.php3.48 ▲0.2540.80 ▲5.58

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

PKT1 Centro de envios: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,781 ▲2014.70 ▲0.141.08 ▼0.8844.50 ▼7.57
Dashboard /wp-admin2,198 ▲215.62 ▲0.0189.11 ▼4.3141.88 ▲1.08
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0835.71 ▼1.5933.85 ▲0.18
Add New Post /wp-admin/post-new.php1,526 ▼223.79 ▲0.84671.20 ▼16.0651.12 ▼2.29
Media Library /wp-admin/upload.php1,403 ▲34.25 ▲0.03109.81 ▲7.6848.59 ▲5.17

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/pkt1-centro-de-envios/pkt1_root.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: woocommerce, estados, logistica, mexico, chile...

pkt1-centro-de-envios/pkt1_root.php 85% from 13 tests

"PKT1 Centro de envios" version 1.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("pkt1-centro-de-envios.php" instead of "pkt1_root.php")
  • 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

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin3,073 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP82963742,597
JavaScript2332323
CSS1331153

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity19.60
▷ Minimum class complexity1.00
▷ Maximum class complexity69.00
Average method complexity8.75
▷ Minimum method complexity1.00
▷ Maximum method complexity67.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods12100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions30
▷ Named functions30100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.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
14 PNG files occupy 0.10MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/logoBluexpress.png12.13KB7.09KB▼ 41.54%
assets/img/logos2/logoPaquetexpress.png5.99KB2.97KB▼ 50.42%
assets/img/logoPaquetexpress.png12.30KB7.26KB▼ 40.97%
assets/img/logoFedex.png11.09KB6.87KB▼ 38.07%
assets/img/logos2/logoFedex.png5.32KB2.72KB▼ 48.94%