79% tarokina-free

Code Review | Tarot for WordPress - Tarokina Free

WordPress plugin Tarot for WordPress - Tarokina Free scored79%from 54 tests.

About plugin

  • Plugin page: tarokina-free
  • Plugin version: 1.9
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.4
  • WordPress version: 6.3.1
  • First release: Dec 21, 2021
  • Latest release: Nov 30, 2023
  • Number of updates: 64
  • Update frequency: every 11.1 days
  • Top authors: arnelio (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

200+ active /7,555 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.17MB] [CPU: ▼4.80ms] Passed 4 tests

A check of server-side resources used by Tarot for WordPress - Tarokina Free
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0434.50 ▼6.08
Dashboard /wp-admin3.57 ▲0.2749.28 ▼1.02
Posts /wp-admin/edit.php3.62 ▲0.2749.47 ▼5.12
Add New Post /wp-admin/post-new.php6.10 ▲0.2290.78 ▼6.97
Media Library /wp-admin/upload.php3.41 ▲0.1837.04 ▲2.21

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Tarot for WordPress - Tarokina Free
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,010 ▲22319.50 ▲5.101.82 ▼0.0135.92 ▼12.38
Dashboard /wp-admin2,406 ▲23210.55 ▲4.88217.88 ▲112.1345.63 ▼0.26
Posts /wp-admin/edit.php2,333 ▲2337.16 ▲5.1595.95 ▲55.5836.30 ▼2.89
Add New Post /wp-admin/post-new.php1,601 ▲7520.17 ▼2.92680.45 ▼16.7443.57 ▼6.75
Media Library /wp-admin/upload.php1,481 ▲817.33 ▲3.15112.95 ▲6.3141.18 ▼9.12

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Please take a closer look at the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/tarokina-free/lib/carbon-fields/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
  • 221× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/tarokina-free/lib/carbon-fields/vendor/htmlburger/carbon-fields/core/Container/Condition/Boolean_Condition.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Predefined_Options_Field' not found in wp-content/plugins/tarokina-free/lib/carbon-fields/vendor/htmlburger/carbon-fields/core/Field/Select_Field.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/tarokina-free/lib/carbon-fields/vendor/composer/installers/src/Composer/Installers/PrestashopInstaller.php:5
    • > PHP Notice
      Undefined variable: plural in wp-content/plugins/tarokina-free/lib/carbon-fields/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php on line 40
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/tarokina-free/lib/carbon-fields/vendor/composer/installers/src/Composer/Installers/MicroweberInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/tarokina-free/lib/carbon-fields/vendor/composer/installers/src/Composer/Installers/AglInstaller.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Field\\Field' not found in wp-content/plugins/tarokina-free/lib/carbon-fields/vendor/htmlburger/carbon-fields/core/Field/Association_Field.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Condition' not found in wp-content/plugins/tarokina-free/lib/carbon-fields/vendor/htmlburger/carbon-fields/core/Container/Condition/Post_Parent_ID_Condition.php:8
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/tarokina-free/includes/install.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/tarokina-free/lib/carbon-fields/vendor/composer/installers/src/Composer/Installers/PhpBBInstaller.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 issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
6 plugin tags: tarot readings, tarot, yes or no tarot, cartouche cards, tarot cards...

tarokina-free/tarokina-free.php Passed 13 tests

The main PHP file in "Tarot for WordPress - Tarokina Free" ver. 1.9 adds more information about the plugin and also serves as the entry point for this plugin
84 characters long description:
This plugin lets you create Tarot readings using your own cards and interpretations.

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
Everything looks great! No dangerous files found in this plugin43,774 lines of code in 604 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1837,21610,96416,540
PHP2683,4537,86912,317
PO File392,4272,7426,338
Sass648553174,930
CSS122411,1602,225
JSON700923
SVG24210319
YAML3300111
Markdown426071

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity5.88
▷ Minimum class complexity1.00
▷ Maximum class complexity50.00
Average method complexity2.08
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces25
Interfaces5
Traits0
Classes231
▷ Abstract classes125.19%
▷ Concrete classes21994.81%
▷ Final classes20.91%
Methods1,065
▷ Static methods958.92%
▷ Public methods84479.25%
▷ Protected methods20619.34%
▷ Private methods151.41%
Functions129
▷ Named functions4031.01%
▷ Anonymous functions8968.99%
Constants48
▷ Global constants2143.75%
▷ Class constants2756.25%
▷ Public constants27100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
10 PNG files occupy 0.24MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
img/caja_1.png107.93KB32.53KB▼ 69.86%
img/no-card.png17.40KB5.83KB▼ 66.51%
img/icon-128x128.png19.83KB7.30KB▼ 63.19%
img/tarokina-free-img-elementor.png25.88KB9.48KB▼ 63.36%
img/positions/3cards-up.png6.74KB2.68KB▼ 60.24%