10% taager

Code Review | Taager

WordPress plugin Taager scored10%from 54 tests.

About plugin

  • Plugin page: taager
  • Plugin version: 1.16.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2
  • WordPress version: 6.3.1
  • First release: Jun 16, 2022
  • Latest release: Nov 23, 2023
  • Number of updates: 60
  • Update frequency: every 8.8 days
  • Top authors: asmahelal (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

700+ active /30,200 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • The plugin did not install without errors
    • > Warning in wp-admin/includes/plugin.php+294
    opendir(wp-content/plugins/woocommerce): failed to open dir: No such file or directory

Server metrics [RAM: ▼1.33MB] [CPU: ▼45.09ms] Passed 4 tests

This is a short check of server-side resources used by Taager
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.66 ▼0.808.26 ▼28.81
Dashboard /wp-admin2.68 ▼0.6211.71 ▼37.63
Posts /wp-admin/edit.php2.68 ▼0.6812.04 ▼37.67
Add New Post /wp-admin/post-new.php2.68 ▼3.2111.68 ▼76.24
Media Library /wp-admin/upload.php2.68 ▼0.5510.18 ▼25.96

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 170 new files
Database: 2 new tables, 13 new options
New tables
wp_taager_provinces
wp_taager_zones
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
ta_plugin_version
ta_product_import_status
ta_products_last_updated_date
ta_last_category_filter
widget_recent-comments
ta_last_name_filter
widget_recent-posts
...

Browser metrics Passed 4 tests

Taager: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,894 ▲13213.44 ▼0.998.84 ▲7.2835.99 ▼4.61
Dashboard /wp-admin2,216 ▲395.65 ▲0.0297.53 ▲0.4346.11 ▲1.23
Posts /wp-admin/edit.php2,121 ▲182.06 ▲0.0740.28 ▲2.3439.10 ▲3.59
Add New Post /wp-admin/post-new.php1,545 ▲1923.29 ▼0.30621.55 ▲18.4251.07 ▲5.97
Media Library /wp-admin/upload.php1,424 ▲244.29 ▲0.1698.56 ▲2.3344.07 ▲1.76

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Warning in wp-admin/includes/plugin.php+294
    opendir(wp-content/plugins/woocommerce): failed to open dir: No such file or directory
  • Zombie WordPress options detected upon uninstall: 9 options
    • ta_plugin_version
    • import_gallery_lists
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • ta_products_last_updated_date
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/taager/includes/mixpanel-php/examples/error_handling.php
    • > /wp-content/plugins/taager/includes/mixpanel-php/examples/custom_consumer.php
  • 129× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > [ Base_MixpanelBase - line 158 ]
      Opening socket connection to tcp://api.mixpanel.com:80
    • > [ Base_MixpanelBase - line 123 ]
      Batch consumption failed!
    • > [ Base_MixpanelBase - line 128 ]
      added batch back to queue, queue size is now 1
    • > [ Base_MixpanelBase - line 135 ]
      Batch of 1 consumed, queue size is now 1
    • > [ Base_MixpanelBase - line 196 ]
      Queued message: {"event":"test_event","properties":{"mp_lib":"php","color":"blue","token":"MIXPANEL_PROJECT_TOKEN","time":1700891146}}
    • > [ Base_MixpanelBase - line 135 ]
      Batch of 2 consumed, queue size is now 0
    • > [ Base_MixpanelBase - line 76 ]
      Using token: MIXPANEL_PROJECT_TOKEN
    • > [ Base_MixpanelBase - line 135 ]
      Batch of 1 consumed, queue size is now 1
    • > [ Base_MixpanelBase - line 135 ]
      Batch of 1 consumed, queue size is now 1
    • > [ Base_MixpanelBase - line 113 ]
      Flush called - queue size: 2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Screenshots: These screenshots require images: #1 (User login), #2 (Country selection page), #3 (Account page), #4 (Importing products from Taager), #5 (Importing products success), #6 (Imported product), #7 (Updating shipping costs)
You can look at the official readme.txt

taager/taager.php 92% from 13 tests

The principal PHP file in "Taager" v. 1.16.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected19,501 lines of code in 113 files:
LanguageFilesBlank linesComment linesLines of code
HTML241,63316810,659
PHP499119783,862
CSS8122241,965
JavaScript153284891,682
SVG124241,006
PO File17069155
Markdown1290104
JSON10029
XML13026
YAML13013

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity5.59
▷ Minimum class complexity1.00
▷ Maximum class complexity35.00
Average method complexity1.73
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes22
▷ Abstract classes29.09%
▷ Concrete classes2090.91%
▷ Final classes00.00%
Methods142
▷ Static methods10.70%
▷ Public methods11278.87%
▷ Protected methods2416.90%
▷ Private methods64.23%
Functions114
▷ Named functions11399.12%
▷ Anonymous functions10.88%
Constants16
▷ Global constants16100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
20 PNG files occupy 3.08MB with 1.82MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-6.png1,421.62KB278.43KB▼ 80.41%
includes/mixpanel-php/docs/images/apple-touch-icon-72x72.png12.45KB5.26KB▼ 57.74%
includes/mixpanel-php/docs/images/iviewer/iviewer.zoom_zero.png1.07KB0.14KB▼ 87.17%
assets/screenshot-2.png188.69KB54.12KB▼ 71.32%
includes/mixpanel-php/docs/images/iviewer/iviewer.rotate_right.png1.45KB1.46KB0.00%