84% daily-fortune-telling-cards

Code Review | Daily Fortune Telling Cards

WordPress plugin Daily Fortune Telling Cards scored84%from 54 tests.

About plugin

  • Plugin page: daily-fortune-tel...
  • Plugin version: 1.3.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3.1
  • WordPress version: 6.3.1
  • First release: Sep 30, 2020
  • Latest release: Sep 18, 2023
  • Number of updates: 51
  • Update frequency: every 21.4 days
  • Top authors: powerfortunes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,874 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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▲0.90ms] Passed 4 tests

Server-side resources used by Daily Fortune Telling Cards
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.87 ▲1.31
Dashboard /wp-admin3.33 ▲0.0253.71 ▲2.82
Posts /wp-admin/edit.php3.38 ▲0.0252.33 ▼3.87
Add New Post /wp-admin/post-new.php5.91 ▲0.0299.28 ▲3.33
Media Library /wp-admin/upload.php3.25 ▲0.0241.30 ▲4.17

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts
power_daily_cards_plugin_version
theysaidso_admin_options
db_upgraded
power_fortune_telling_cards_plugin_option

Browser metrics Passed 4 tests

This is an overview of browser requirements for Daily Fortune Telling Cards
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲5614.73 ▲0.351.67 ▼0.1842.77 ▼5.97
Dashboard /wp-admin2,221 ▲245.84 ▼0.01101.98 ▼31.6541.61 ▼16.51
Posts /wp-admin/edit.php2,100 ▼31.96 ▼0.0136.75 ▼2.1934.27 ▼4.84
Add New Post /wp-admin/post-new.php1,546 ▲622.94 ▲4.79623.56 ▼36.4078.92 ▲6.45
Media Library /wp-admin/upload.php1,397 ▼04.24 ▲0.0497.93 ▼11.4245.81 ▼4.16

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 8 options
    • db_upgraded
    • widget_theysaidso_widget
    • power_fortune_telling_cards_plugin_option
    • power_daily_cards_plugin_version
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

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
Please fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/daily-fortune-telling-cards/unistall.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/daily-fortune-telling-cards/functions.php:79

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 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
9 plugin tags: fortune telling cards, sun signs, star sign, daily horoscopes, tarot...

daily-fortune-telling-cards/index.php 85% from 13 tests

The main PHP script in "Daily Fortune Telling Cards" version 1.3.5 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("daily-fortune-telling-cards.php" instead of "index.php")

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
No dangerous file extensions were detected112 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP31642105
CSS1017

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin