84% timologia-for-woocommerce

Code Review | Timologia for WooCommerce

WordPress plugin Timologia for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: timologia-for-woo...
  • Plugin version: 2.6.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: Feb 16, 2017
  • Latest release: Nov 12, 2022
  • Number of updates: 34
  • Update frequency: every 61.6 days
  • Top authors: exentric (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

4,000+ active /13,865 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

This is a short check of server-side resources used by Timologia for WooCommerce
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0523.58 ▼20.00
Dashboard /wp-admin3.41 ▲0.1045.28 ▼2.30
Posts /wp-admin/edit.php3.52 ▲0.1649.56 ▲5.77
Add New Post /wp-admin/post-new.php6.01 ▲0.1295.64 ▲6.88
Media Library /wp-admin/upload.php3.33 ▲0.1035.27 ▲0.59

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Timologia for WooCommerce
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,487 ▼24813.11 ▼1.160.49 ▼2.5016.18 ▼33.19
Dashboard /wp-admin2,228 ▲404.85 ▼1.05112.14 ▼0.0941.87 ▼1.96
Posts /wp-admin/edit.php2,111 ▲192.07 ▼0.0742.68 ▲6.1934.55 ▼1.72
Add New Post /wp-admin/post-new.php1,554 ▲2018.20 ▼4.88606.97 ▼84.7672.50 ▲17.66
Media Library /wp-admin/upload.php1,407 ▲224.35 ▲0.1999.07 ▼1.2144.91 ▲0.69

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/timologia-for-woocommerce/settings.php:8

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: timologia, checkout fields, woocommerce, invoice, checkout...

timologia-for-woocommerce/wc-timologia.php 85% from 13 tests

This is the main PHP file of "Timologia for WooCommerce" version 2.6.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("timologia-for-woocommerce.php" instead of "wc-timologia.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected1,032 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP378169452
PO File4164217450
JavaScript4283115
CSS10015

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity5.50
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.82
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods11100.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin