83% tarot-reading

Code Review | Tarot reading

WordPress plugin Tarot reading scored83%from 54 tests.

About plugin

  • Plugin page: tarot-reading
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5
  • WordPress version: 6.3.1
  • First release: Dec 13, 2020
  • Latest release: Dec 13, 2020
  • Number of updates: 3
  • Update frequency: every 15.7 days
  • Top authors: cory01 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /511 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.54MB] [CPU: ▼32.06ms] Passed 4 tests

This is a short check of server-side resources used by Tarot reading
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.81 ▼0.6614.33 ▼37.71
Dashboard /wp-admin3.26 ▼0.0933.84 ▼26.16
Posts /wp-admin/edit.php3.19 ▼0.1729.64 ▼19.95
Add New Post /wp-admin/post-new.php4.66 ▼1.2345.25 ▼44.43
Media Library /wp-admin/upload.php3.29 ▲0.0637.74 ▲4.92
タロット占い /wp-admin/options-general.php?page=tarot_reading_admin3.2628.77

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Tarot reading: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,833 ▲8714.61 ▲0.032.09 ▼0.9442.40 ▼18.35
Dashboard /wp-admin2,210 ▲215.85 ▲0.92102.59 ▼10.8345.22 ▲1.51
Posts /wp-admin/edit.php2,096 ▲72.06 ▲0.0553.89 ▲13.1149.19 ▲12.17
Add New Post /wp-admin/post-new.php1,539 ▲1123.27 ▲5.03587.21 ▼31.7457.00 ▲8.81
Media Library /wp-admin/upload.php1,392 ▲14.15 ▼0.0297.52 ▼5.6748.10 ▲5.83
タロット占い /wp-admin/options-general.php?page=tarot_reading_admin8762.0624.0864.43

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/tarot-reading/tarot_reading.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Donate link: Invalid url: ""
  • Contributors: No tags were detected
  • Contributors: The plugin contributors field is missing
You can take inspiration from this readme.txt

tarot-reading/tarot_reading.php 85% from 13 tests

The primary PHP file in "Tarot reading" version 1.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 198 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("tarot-reading.php" instead of "tarot_reading.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected529 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP43138376
JavaScript11436110
CSS14143

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity13.50
▷ Minimum class complexity2.00
▷ Maximum class complexity25.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods9
▷ Static methods9100.00%
▷ Public methods333.33%
▷ Protected methods00.00%
▷ Private methods666.67%
Functions11
▷ Named functions19.09%
▷ Anonymous functions1090.91%
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
No PNG files were detected