10% mylerz

Code Review | Mylerz

WordPress plugin Mylerz scored10%from 54 tests.

About plugin

  • Plugin page: mylerz
  • Plugin version: 4.0.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.4.1
  • WordPress version: 6.3.1
  • First release: Jul 20, 2022
  • Latest release: Nov 24, 2023
  • Number of updates: 9
  • Update frequency: every 54.7 days
  • Top authors: mylerz (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

80+ active /1,335 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • Install procedure had errors
    • > Notice in wp-content/plugins/mylerz/mylerz.php+401
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.34MB] [CPU: ▼48.82ms] Passed 4 tests

A check of server-side resources used by Mylerz
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.66 ▼0.817.23 ▼33.27
Dashboard /wp-admin2.68 ▼0.6311.25 ▼36.91
Posts /wp-admin/edit.php2.68 ▼0.6810.05 ▼41.44
Add New Post /wp-admin/post-new.php2.68 ▼3.228.61 ▼83.64
Media Library /wp-admin/upload.php2.68 ▼0.569.22 ▼24.85

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

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

Browser metrics Passed 4 tests

Mylerz: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,924 ▲16215.78 ▲1.426.08 ▲4.2840.32 ▼2.41
Dashboard /wp-admin2,213 ▲366.75 ▲1.11112.85 ▲14.3338.59 ▼8.60
Posts /wp-admin/edit.php2,127 ▲273.73 ▲1.7951.35 ▲11.7433.24 ▼3.54
Add New Post /wp-admin/post-new.php1,553 ▲2424.27 ▲1.07678.86 ▲27.2035.69 ▼25.37
Media Library /wp-admin/upload.php1,427 ▲276.14 ▲1.94120.55 ▲21.8946.62 ▲2.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/mylerz/mylerz.php+401
    Trying to access array offset on value of type bool
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
The following issues need your attention
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/mylerz/templates/adminhtml/bulk_delivery_status.php
    • > /wp-content/plugins/mylerz/templates/adminhtml/bulk_cancel.php
    • > /wp-content/plugins/mylerz/templates/adminhtml/create_pickup_order.php
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/mylerz/includes/shipping/data-mylerz-settings.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/mylerz/mylerz.php:23
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/mylerz/includes/shipping/mylerz-shipping-method.php:5

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 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
Please fix the following attributes:
  • Screenshots: These screenshots require images: #1 (Mylerz Settings page.), #2 (Neighborhood dropdown.), #3 (Fulfilled Orders.), #4 (Print AWB.), #5 (Tracking Number on orders Page.)
  • Donate link: Invalid url: "mylerz.com"
The official readme.txt is a good inspiration

mylerz/mylerz.php Passed 13 tests

The main file in "Mylerz" v. 4.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
47 characters long description:
Convenient and Friendly parcel delivery service

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin54,100 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript119,30826351,233
PHP96791662,517
CSS23521248
PO File23134102

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.67
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions115
▷ Named functions7968.70%
▷ Anonymous functions3631.30%
Constants0
▷ Global constants00.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
No PNG files were detected