73% spillt-recipe-app

Code Review | Spillt Recipe Plugin

WordPress plugin Spillt Recipe Plugin scored 73% from 54 tests.

About plugin

  • Plugin page: spillt-recipe-app
  • Plugin version: 1.0.28
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: Jun 9, 2022
  • Latest release: Jul 3, 2023
  • Number of updates: 51
  • Update frequency: every 7.6 days
  • Top authors: spillt (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 1,800 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲1.37MB] [CPU: ▲13.17ms] Passed 4 tests

An overview of server-side resources used by Spillt Recipe Plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.85 ▲1.3960.01 ▲19.54
Dashboard /wp-admin4.71 ▲1.4062.42 ▲13.30
Posts /wp-admin/edit.php4.76 ▲1.4068.97 ▲19.18
Add New Post /wp-admin/post-new.php7.25 ▲1.36102.05 ▲0.66
Media Library /wp-admin/upload.php4.57 ▲1.3456.66 ▲21.04
Scheduled Actions /wp-admin/tools.php?page=action-scheduler4.7355.94
Spillt /wp-admin/admin.php?page=spillt-main4.5548.05
Settings /wp-admin/admin.php?page=spillt-settings4.5446.80

Server storage [IO: ▲0.55MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 118 new files
Database: 4 new tables, 11 new options
New tables
wp_actionscheduler_claims
wp_actionscheduler_logs
wp_actionscheduler_groups
wp_actionscheduler_actions
New WordPress options
spillt_activated
schema-ActionScheduler_StoreSchema
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
schema-ActionScheduler_LoggerSchema
can_compress_scripts
action_scheduler_hybrid_store_demarkation
...

Browser metrics Passed 4 tests

Checking browser requirements for Spillt Recipe Plugin
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,871 ▲11413.25 ▼0.952.00 ▼0.2642.91 ▲0.25
Dashboard /wp-admin2,277 ▲954.92 ▼0.93114.90 ▲9.0444.06 ▼1.03
Posts /wp-admin/edit.php2,160 ▲682.07 ▲0.0642.13 ▼0.6034.07 ▼2.39
Add New Post /wp-admin/post-new.php1,548 ▲623.01 ▲4.89597.83 ▼20.3065.00 ▲10.69
Media Library /wp-admin/upload.php1,463 ▲784.25 ▲0.0796.47 ▼2.2840.60 ▼5.53
Scheduled Actions /wp-admin/tools.php?page=action-scheduler1,3082.2533.4733.29
Spillt /wp-admin/admin.php?page=spillt-main1,1592.2530.8437.41
Settings /wp-admin/admin.php?page=spillt-settings9362.1127.8729.43

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie tables detected upon uninstall: 4 tables
    • wp_actionscheduler_groups
    • wp_actionscheduler_logs
    • wp_actionscheduler_claims
    • wp_actionscheduler_actions
  • This plugin did not uninstall successfully, leaving 11 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • schema-ActionScheduler_LoggerSchema
    • widget_recent-posts
    • spillt_activated
    • action_scheduler_hybrid_store_demarkation
    • schema-ActionScheduler_StoreSchema
    • widget_recent-comments
    • db_upgraded
    • action_scheduler_lock_async-request-runner
    • ...

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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% 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 fix the following items
  • 44× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Store' not found in wp-content/plugins/spillt-recipe-app/vendor/woocommerce/action-scheduler/classes/data-stores/ActionScheduler_DBStore.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_QueueRunner' not found in wp-content/plugins/spillt-recipe-app/vendor/woocommerce/action-scheduler/classes/WP_CLI/ActionScheduler_WPCLI_QueueRunner.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/spillt-recipe-app/vendor/woocommerce/action-scheduler/lib/cron-expression/CronExpression_MinutesField.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_DBStore' not found in wp-content/plugins/spillt-recipe-app/vendor/woocommerce/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_Schema' not found in wp-content/plugins/spillt-recipe-app/vendor/woocommerce/action-scheduler/classes/schema/ActionScheduler_LoggerSchema.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/spillt-recipe-app/vendor/woocommerce/action-scheduler/lib/cron-expression/CronExpression_YearField.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'ActionScheduler_Exception' not found in wp-content/plugins/spillt-recipe-app/vendor/woocommerce/action-scheduler/classes/ActionScheduler_InvalidActionException.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_FinishedAction' not found in wp-content/plugins/spillt-recipe-app/vendor/woocommerce/action-scheduler/classes/actions/ActionScheduler_CanceledAction.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/spillt-recipe-app/vendor/woocommerce/action-scheduler/lib/cron-expression/CronExpression_DayOfWeekField.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/spillt-recipe-app/vendor/woocommerce/action-scheduler/lib/cron-expression/CronExpression_HoursField.php:8

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 90% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: spillt, spillt-app

spillt-recipe-app/spillt.php 77% from 13 tests

The principal PHP file in "Spillt Recipe Plugin" v. 1.0.28 is loaded by WordPress automatically on each request
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 192 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("spillt-recipe-app.php" instead of "spillt.php")
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin8,608 lines of code in 108 files:
LanguageFilesBlank linesComment linesLines of code
PHP1002,0285,5628,081
JavaScript2147274
CSS130108
Markdown337091
JSON20054

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity12.25
▷ Minimum class complexity1.00
▷ Maximum class complexity81.00
Average method complexity2.49
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces5
Interfaces3
Traits0
Classes88
▷ Abstract classes1517.05%
▷ Concrete classes7382.95%
▷ Final classes00.00%
Methods709
▷ Static methods16022.57%
▷ Public methods54476.73%
▷ Protected methods13619.18%
▷ Private methods294.09%
Functions33
▷ Named functions1957.58%
▷ Anonymous functions1442.42%
Constants45
▷ Global constants920.00%
▷ Class constants3680.00%
▷ Public constants36100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/check-mark.png0.36KB0.37KB0.00%
assets/img/x-mark.png0.24KB0.25KB0.00%