84% interface-for-geniki-taxydromiki-and-woo

Code Review | Interface for Geniki Taxydromiki API v2 and Woo

WordPress plugin Interface for Geniki Taxydromiki API v2 and Woo scored84%from 54 tests.

About plugin

  • Plugin page: interface-for-gen...
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2.2
  • WordPress version: 6.3.1
  • First release: Jul 9, 2022
  • Latest release: Jul 27, 2023
  • Number of updates: 15
  • Update frequency: every 25.5 days
  • Top authors: kiiraklis94 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

50+ active /398 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼3.11ms] Passed 4 tests

This is a short check of server-side resources used by Interface for Geniki Taxydromiki API v2 and Woo
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1445.96 ▲1.29
Dashboard /wp-admin3.44 ▲0.1350.77 ▲2.44
Posts /wp-admin/edit.php3.55 ▲0.1947.79 ▲0.16
Add New Post /wp-admin/post-new.php6.04 ▲0.1587.07 ▼10.30
Media Library /wp-admin/upload.php3.36 ▲0.1336.67 ▼3.57

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Interface for Geniki Taxydromiki API v2 and Woo: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲4914.35 ▼0.031.81 ▲0.1345.83 ▲3.16
Dashboard /wp-admin2,278 ▲1018.27 ▲2.70114.45 ▲18.3294.45 ▲53.13
Posts /wp-admin/edit.php2,181 ▲814.86 ▲2.8260.14 ▲23.9936.17 ▼0.14
Add New Post /wp-admin/post-new.php6,330 ▲4,80426.12 ▲3.14980.98 ▲304.8450.60 ▼10.89
Media Library /wp-admin/upload.php1,469 ▲696.69 ▲2.48120.42 ▲1.9781.48 ▲30.64

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/interface-for-geniki-taxydromiki-and-woo/orders-column.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/interface-for-geniki-taxydromiki-and-woo/options.php:136
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/interface-for-geniki-taxydromiki-and-woo/bulk-actions.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/interface-for-geniki-taxydromiki-and-woo/geniki-metabox.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/interface-for-geniki-taxydromiki-and-woo/track-and-trace.php:119

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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes: The official readme.txt is a good inspiration

interface-for-geniki-taxydromiki-and-woo/woocommerce-geniki.php 92% from 13 tests

Analyzing the main PHP file in "Interface for Geniki Taxydromiki API v2 and Woo" version 1.0.2
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("interface-for-geniki-taxydromiki-and-woo.php" instead of "woocommerce-geniki.php")

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
No dangerous file extensions were detected635 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP935875635

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/gt-icon.png0.49KB0.47KB▼ 5.15%